Governor/Emergency brake

These are the safety devices to prevent the car from falling should the elevator exceed its rated speed or should the rope break for some reason. Even should the rope break and the car falls at a certain speed, the governor begins operating and a connected rope is tensioned.
Then the emergency brake on the car instantly drives a wedge in an open space in the guard rail to halt the car.

Video explanation