Final answer:
Temperature differences create pressure gradients and are the primary driver of the constant movement of atmospheric gases due to convection.
Step-by-step explanation:
The main factor that contributes to the constant movement of the air due to heating and cooling is temperature differences that create pressure gradients. This process, known as convection, is driven by the large-scale flow of matter in Earth's atmosphere. As atmospheric gases get heated by the sun, they rise, and as they cool down, they sink, creating a cycle of air movement. The atmosphere tries to equalize global temperatures through winds. Additionally, Earth's rotation affects the circulation patterns via the Coriolis effect, influencing the flow of air as well, but it is the temperature differences that are the main driver of the atmospheric movement.