energy as heat is being used to melt the substance, however, it takes a significant amount of energy to break the intermolecular forces to phase change
\
so all of the energy is being focused on phase-changing the substance instead of raising its temperature