During change of phase (melting or boling) the temperature does not change on gaining heat. In these situations the heat gained goes to break the association between constituent particles of the substance without increasing average their thermal kinetic energy.