The temperature of a substance remains constant during at its melting or boiling point because all the heat energy supplied to the substance is absorbed by its particles and is used up in overcoming the forces of attraction between the particles and making them free to move apart. Therefore, it does not show any rise in temperature.