The correct answer is through convection.
In the scenario described, the heat from the land warms the air above it, causing the air to rise. As the warm air rises, cooler air from over the ocean moves in to take its place, creating a breeze. This process of warm air rising and cool air moving in is a prime example of convection, which is the transfer of thermal energy through the movement of fluids (in this case, air).