When a liquid is heated it gains energy. If they are travelling fast enough towards the surface They can escape into the gas. If this happens normally its called evaporation. At a certain temp all of the particles have sufficient energy to overcome the weak forces of attraction that hold them together as liquid