Locks wear at the points that move. Springs lose tension, cams and tailpieces wear, latch bolts round off, and the pins in a cylinder shorten with years of key use.
On older mortise locks, the most common failures are a broken spring inside the case, a worn hub where the spindle turns, and a latch that no longer returns fully. On older tubular locks, it is usually the latch mechanism or the connection between the knob and the latch. On storefront locks, it is often the cylinder cam or the linkage to the deadbolt.
Knowing where the failure is matters, because a single spring or cam is often repairable even when the complete lock is no longer available.