It's called a let. When a let occurs, the serve is redone. If the server is on their first serve and they get a let, they redo their first serve. That is why some players say "take two" when the server hits a let. The same with the second serve. But if the ball hits the net and goes out, it counts as a fault.