in the atmosphere, as the air gets warmer, it rises up. when the air gets cooler , it sinks down. When the water gets warmer due to either sunshine or geothermic properties , it rises up as surface currents which have their own unique pathway
hope this helps :D