A fuel pump in a motorcycle is responsible for pumping fuel from the gas tank to the engine. It ensures a consistent flow of fuel for combustion, optimizing the performance of the motorcycle.