When liquid water is heated to 100 degrees Celsius, it boils & changes into a gas. If the gas is cooled, it condenses & becomes a liquid. If the liquid is cooled to 0 degrees Celsius, it freezes & becomes a solid. If ice is heated, it melts to become water or sublimates to become a gas. Liquid water expands when heated & when it turns into ice.