Over time car manufacturers have been improving the safety features in cars. They have been improving them by adding things like airbags and sensors that detect if the car has been hit. The idea behind the airbag is to take advantage of the physics of a crash. In the case of a head-on collision, a car usually stops fast.
But the body of the driver, doesn’t. It follows Newton’s second law: its momentum continues until an outside force usually the steering wheel, dashboard or windshield brings it to a stop. An airbag doesn’t just soften the blow. It actually lowers the impact by stretching it out over a longer period of time.
Seat belts stop you tumbling around inside the car if there is a collision. When there is a collision the seat belts will lock in place. this keeps you in place so you don’t fly around/out of the car. When a car crashes, there is no unbalanced force acting on the person, so they continue forward (Newton's First Law).
When a person moves against the seat belt, exerting a force on it. The seat belt then exerts a force back on the person (Newton's Third Law). This causes a controlled deceleration of the person. This keeps the occupant safe and unharmed.