When a substance is heated its temperate would normally increase due to the average kinetic energy increasing. However, when the substance is changing state either solid to liquid or liquid to gas, the temperature stays the same. This happens because the energy is being used to break the bonds between the molecules instead of increasing the kinetic energy.