All the molecules in the liquid are pulled by other water molecules due to intermolecular force. The forces on a molecule are balanced out by forces exerted by other molecules around the given molecule. But on surface, there are no molecules on top to balance the downward force. Therefore, a force perpendicular to the surface of water creates a thin elastic film. This is known as the surface tension.