Answer:
Thermal energy needs to be taken.
Explanation:
For water to change from a liquid to a solid, it needs to be cooled down.
Lowering the temperature of a substance means that thermal energy needs to be taken away from it.
Conversely, for water to change from a solid to a liquid, or from a liquid to a gas, thermal energy needs to be added to it.