The problem of a pendulum that won't keep swinging could be caused by many different defects.
The most common reason being that it needs cleaning and oiling. Other reasons could be the clock is out of beat, the escapement needs adjusting, the spring is set (weak), a bent tooth on one of the wheels (gears), a damaged pinion, bent pivot or worn pivot hole, (needs re-bushing), etc.