If you add heat energy to water molecules i the form of ice,where does the energy go?

When heat energy is added to water molecules in the form of ice, the energy is used to break the intermolecular bonds holding the water molecules together in a rigid structure. This allows the water molecules to gain kinetic energy and move more freely, resulting in the transition from a solid (ice) to a liquid (water).

The process of adding heat energy to a substance and causing its phase transition is known as melting. During melting, the energy is absorbed by the solid as potential energy, allowing the water molecules to move farther apart and gain enough energy to overcome the attractive forces between them.

In other words, the heat energy supplied is "stored" as potential energy within the water molecules, enabling them to break free from their fixed positions and become more mobile in the liquid state.