The temperature remains constant during the change of state. The temperature of substance does not increase (or decrease) as the heat is used to overcome the force of attraction (or as the particle come closer). This heat energy absorbed (or released) is known as latent heat. The temperature of the substance remains the same as latent heat is applied to it or supplied to it.