The Sun dumps a lot of thermal energy by sunlight into the atmosphere, and especially into the oceans. Basically, currents arise as warm equatorial waters move to the NORTH carrying heat, and as part of this flow, the cold polar waters go south and there get heated. Then, the SUN is like an engine which drives ocean currents.
Hope that helps