The following signs indicate you need to replace your heater.
Abnormally high energy bills.
Frequent Short cycling.
Frequent adjusting of the thermostat.
Strange noises/odor
The pilot light has turned yellow.
Deteriorating health
Recurrent needs for repairs.