Elisha Otis invented an automatic braking system for lifts in 1854. It's basically a ratchet system with the pawls held off the ratchet by the tension in the cable. When (if) the cable breaks the pawls are released and engage with the ratchet, thus preventing the lift from plumeting.