The questions that come up before the call
Most people ring a plumber only after trying to work out what the noise, the puddle or the cold shower means. These answers are here so that the decision is easier before anyone is on the phone — what is repairable, what is not, and what to shut off while you decide.
Reading the symptom
A water heater gives warning before it quits. Sediment on the burner plate makes a rumble or a pop. A failing dip tube sends cold water into the hot line, so the shower goes cold in a minute instead of ten. A relief valve that weeps means pressure is finding its way out, which is worth understanding rather than mopping up. A pilot that will not hold points to the thermocouple or the gas supply, not to the tank.
The failure without warning is the tank shell, and it usually announces itself with water at the base that does not stop after the inlet is closed.
What the answers do not cover
Cost. A repair price depends on the unit, the access and the parts, and a number given over the internet for a heater nobody has seen is a guess dressed up as a quote. The phone call is where that gets sorted — describe the unit and the symptom, and you will hear what the job likely involves.