Dear student
The temperature of a substance remains constant during melting till the completion of the process because substance makes use of latent heat of fusion to overcome force of attraction between particles of solid to change into liquid during melting. The heat supplied is continuously used up in changing the state of the substance by overcoming the forces of attraction between the particles. Therefore, temperature remains constant.
Regards