Why does the temperature of a substance remain constant during its melting point or boiling point?
The energy possessed by gases is more than liquids and similarly liquid possess more energy than solids.
When we heat up any solid at its melting temperature it keeps on receiving heat but its temperature does not change. The given heat is used to change the state of solid to liquid and this heat is called latent heat of fusion.
Similarly, when we heat liquid at its boiling point the temperature of liquid does not change. The given heat is used to change the state of liquid to gas and this heat is called latent heat of evaporation.
Generally heating results as rise in temperature but at boiling point and at melting point this is not observed. The heat given is used in state change.