A change of state may occur when?

Changes in the state of matter occur when the amount of heat energy is changed in a substance. When it is removed, gas condenses and liquid freezes. When it is added, solids melt and liquids boil.