Covalent bonds hold the atoms of a molecule together. Molecules also pull on each other, much more weakly. These small pulls between molecules decide whether a substance is a gas, a liquid or a solid.
In a liquid, the molecules touch and tumble past each other, held close by their pulls. Heat makes them move faster. At the boiling point, they move fast enough to break away from each other, and the liquid turns into a gas. Every molecule stays whole: steam from a kettle is made of H₂O molecules, just like the water.
The stronger the pulls between molecules, the more heat it takes to separate them, and the higher the boiling point.
Longer chains hold on harder
Alkanes are non-polar, with no charged ends, yet their molecules still pull on each other. The electrons in a molecule are always moving, and for an instant one side can have a few more than the other. That brief unevenness shifts the electrons of the molecule next door, so the two facing sides get opposite charges for that instant, and opposite charges attract. Each tug is tiny, but they add up along every part of two molecules that touch.
In lesson 4 you saw that longer chains boil at higher temperatures. Now you can see why: a long chain touches its neighbours along more of its length, so more of these small pulls hold it in place.