Working of Manual Transmission
When the gear selector fork is shifted into first gear, the collar engages the blue gear on the right:
In this picture, the green shaft from the engine turns the lay shaft, which turns the blue gear on the right. This gear transmits its energy through the collar to drive the yellow drive shaft. Meanwhile, the blue gear on the left is turning, but it is freewheeling on its bearing so it has no effect on the yellow shaft.