First press F12 to get the pit menu on your screen. Make sure that "Repair Damage" is set to yes (you can scroll through the menu with the arrow keys I think). Then just make a pitstop by driving in the pitlane (watch your speed!) and stopping in one of the rectangles drawn in front of the pitboxes.