In a similar way heat enters a liquid to change the molecular bonding when the liquid boils or  evaporates into a gas, and heat enters a solid to change the molecular bonding when it sublimates into a gas.