The correct response is: The molecules vibrate and absorb and reemit infrared energy.
Greenhouse gas molecules in the atmosphere absorb infrared radiation emitted by the Earth's surface and then reemit that energy in all directions, including back towards the surface, which contributes to the greenhouse effect and helps to warm the planet.