Dear Student,
When we heat liquid, the molecules in the liquid will get more freedom to move around and the separation between them increases.Gradually they turn into gaseous form which is a random arrangement of molecules which are free to move around any direction.This is because liquid absorbs the heat energy and uses it to increase the kinetic energy of the molecules.Thus heat energy is transformed into increase in kinetic energy.
Regards..