Answer: Thermal energy from the fire moves to the water in the form of heat.
Because according to second law of thermodynamic, heat flows from higher to lower temperature region. Heat is the transfer of energy from an object at higher temperature to an object at a lower temperature. so energy flows from warmer to colder objects