Answer:
Good question to ask in physics, sir maam
Gravitation is the attractive force existing between any two objects that have mass. The force of gravitation pulls objects together. Gravity is the gravitational force that occurs between the earth and other bodies. Gravity is the force acting to pull objects toward the earth.
The answer is energy.
Waves in the ocean are energy travelling along water.
Waves do not transport mass, they transport energy, this is the ability to perform work or exert force and distant points.
Although water seems to be travelling along with the wave, the molecules of water only move up and down; they do not travel along with the wave.