It’s to with the Kinect energy, as you heat the partials up, the have more kinetic energy so they begin to move/vibrate more, this breaks to forces between the particles which causes the particles to move further apart. The kinetic energy causes the bonds to be disturbed in solid to liquid and completely break in liquid to gas. That’s quite basic but ask anymore questions if you’re still confused.