A gas control valve regulates the pilot and the main burner, and it shuts both off when the flame signal disappears. When it fails, the heater either will not stay lit or will not fire at all. It is also the most expensive common part on a gas tank, which is why the diagnosis matters.
What the valve does
The valve receives gas from the supply, reduces it to the pressure the burner needs, and holds the pilot port open while the thermocouple or flame sensor proves a flame. It also carries the temperature control on a standing-pilot heater.
A valve can fail in several ways: the pilot port will not stay open, the main burner will not open, the temperature control drifts, or the body leaks. The symptoms differ, and so does the urgency.
Proving it before buying it
Work backwards from the symptom. A pilot that lights and drops is a flame-signal question first: the flame has to reach the probe and the probe has to produce enough current, and either can fail without anything wrong with the valve body. A pilot that will not light at all moves the visit to the gas side, where the pressure at the inlet, the state of the orifice and the drawing of the vent come before the control.
Only when the flame is good, the signal is good, the pressure is right and the vent is clear does the valve become the suspect. On a hillside install that order saves a part that would have cost more than the visit, and it is the difference between a repair and an expensive guess.
The swap on a platform
A hillside install often puts the control at kneeling height with a wall behind it, so the wrench travel is short and the body has to come out straight. The appliance valve is closed, the union is cracked, and the old control is lifted clear with the seals replaced as a matter of course rather than reused.
Once it is back together, the joint is proved with leak detector, the pilot is established by hand, and the burner is allowed to run a full recovery. Pressure is read again at the end, and the draft hood is checked while someone is still there to correct it. A valve that was fitted and never proved is not a finished job.
Safety boundaries
A gas smell is a utility emergency, not a repair booking. Soot, a yellow flame, or repeated ignition failures with a smell are reasons to stop using the heater until it is checked. Those conditions are outside what a valve swap alone should address.
On the hill
Units in garages and on platforms can be tight to work on, and a valve that sits close to a wall needs the space to be turned and tested. The access is part of the estimate. On association streets, the gate code and work hours belong in the booking.