The correct statement that describes how the atmosphere gains energy by convection is: Air warmed by the ground rises.
This process occurs because the ground absorbs solar energy, warms the air directly above it, and when that air becomes less dense, it rises, allowing cooler air to move in and take its place.