The United States and Iran each warned they were ready for war as the clock ticked down Tuesday on a ceasefire, with uncertainty on talks that President Donald Trump had announced would resume in Pakistan.