Traffic signals manage the flow of vehicles and pedestrians, preventing collisions at intersections by ensuring that not all movements occur at the same time.