The temperature of water as ice forms is very very low while when it begins to melt it gradually increases in temperature.
This in turn determines whether the substance exists in the solid, liquid, or gaseous state. Molecules in the solid phase have the least amount of energy, while gas particles have the greatest amount of energy. The temperature of a substance is a measure of the average kinetic energy of the particles.