How do I know if my heater needs to be replaced?

How do I know if my heater needs to be replaced?