When the molecules in a liquid are heated, they move faster. This makes them full of energy and so the particles collide with each other, and eventually they become so far apart that they become a gas.