This answer is directly from the text book.
A can containing a little water is heated until steam forms. Then the can is capped securely and removed from the source of heat. There is now less air inside the can than before it was heated. (Why? Because when the water boils and changes to steam, the steam pushes air out of the can.) When the sealed can cools, the pressure inside is reduced because steam inside the can condenses to
a liquid when it cools. The greater pressure of the atmosphere outside the can then proceeds to crush the can.