Which causes waves in the ocean to occur?

Earth’s rotation
Earth’s gravitational pull
energy being transferred from wind
energy from the Sun heating water