Im pretty sure its the first option
This is something I have no idea
The answer is:
Heat transfer.In order to heat up water there has to be a way that the heat puts energy into the water,which make is rise in temperature.
I hope this helps :D
That is not a question but not all scientific theories have stood the test of time