Pit stops allow you to change tyres and top up your fuel. You can also choose to Service your car, this will restore your Car Condition bar to 100% and also fix any component failures your car suffers during the race.
 
You can stop as many times as you like, and can stop your cars on the same lap because they have their own separate pit crews.