Why does the temperature of boiling or melting water remain constant?
You mean during the phase transition? Because all additional energy furnished to the system goes to producing the phase transition. A substance requires energy to go from solid to liquid or from liquid to gas. Look up latent heat.
Separate names with a comma.