The most common cause of waves is wind. When the wind blows over the ocean's surface, it creates friction between the wind and the surface of the water, causing ripples.
The gravitational pull of the sun and moon on the Earth also causes waves. In fact, if you could view the Earth from space, you would see the oceans bulging out.