Materials that are lighter than water, float over the surface of water, whereas materials that are heavier than water sink in water.
An iron nail sinks in water because it is heavier than water. On the other hand, a leaf is lighter than water; therefore, it does not sink in water and floats on its surface.