The white foamy water that rushes up the coast is called SWASH . The SWASH carries the materials up the coast. The friction and the pull of gravity then cause the water to flow back towards the sea.
The flow back to the sea after the wave have broken is called BACKWASH. The backwash will carry some material back to the sea.