Gearboxes function a critical role in transmitting energy from an engine to the wheels of a vehicle. They achieve this by utilizing a set of components of various sizes, enabling the driver to adjust the speed and output delivered to the wheels. This manipulation is crucial for enhancing vehicle capabilities across a range of driving conditions.