To heat up a substance requires energy.
This energy increases the internal energy of the substance by increasing the kinetic energy of its molecules and so the temperature of the substance rises.
The amount of heat energy needed to change the temperature of a substance depends on:
(a) what the substance is;
(b) how much of it is being heated;
(c) what rise in temperature occurs.