Your Motorcycle takes damage from collisions, landing from high jumps, riding over bear traps and fires, from enemy gunfire, etc. If your Bike is heavily damaged, it will not be able to run fast so it’s always a good idea to keep it maintained. During certain Story Mission sequences, your bike will be temporarily invulnerable to damage and will not consume Fuel.
To Repair your Bike using scrap, approach the engine bay and press circle. The amount of scrap needed to repair the bike will depend on how much damage it took. Mechanics in encampments can also repair your bike, with a corresponding fee. Consider repairing your bike yourself to save up Credits early in the game.
We have questions and answers related to this topic which may also help you: