Star Trek: The Original Series · S2, E12
The Deadly Years
Kirk and other crew members succumb to a strange malady which accelerates the ageing process. With old age and senility creeping suddenly and unexpectedly upon him, the captain begins to doubt his own abilities as leader. As the ship comes under attack, it may well be the end.