Energy is stored inside a system by the particles (atoms and molecules) that make up the system. This is called internal energy.
Internal energy is the total kinetic energy and potential energy of all the particles (atoms and molecules) that make up a system
Heating changes the energy stored within the system by increasing the energy of the particles that make up the system. This either raises the temperature of the system or produces a change of state.