Since the oxygen likes to hog all the electrons, it gives the hydrogen molecules a slight positive charge and the itself a slightly negative charge.
Positive attracts negative, so there is some sort of attraction between water molecules, though a weak one.