There are three types of energy transfers that more likely to warm the atmosphere, first is the radiation where the transfer of energy is between two objects by electromagnetic waves. The heat then radiates from the ground into the lower atmosphere making it warm.
Second type is conduction where it is more effective at lower altitudes when air density is higher, heat transfers laterally from a warmer to a cooler spot, where the molecules are moving less vigorously.
Lastly, the heat that radiates from the ground initiates convection cells in the atmosphere and this heat transfer by movement of heated materials is called convection.