In races you control two drivers. Your drivers will get more points the higher up the leaderboard they finish. You can control each car’s speed and decide when they should pit stop.
However, the faster you go, the more fuel your car will consume and the quicker the tyres will wear out. You cannot refuel during a pit stop - so make sure your fuel will last until the end of the race!