These tracts have plumbing that is sixty years old in places. A bang in the garage is often a pipe shock travelling through the run, or a vent connection that has worked loose above the tank.
Water hammer
In a house of this age the pipework was never clipped for a fast-closing washer valve, so shutting off a tap sends a shock along the run and the whole house hears it.
Repairing it is pipework, not heater work: the loose lengths are fastened, arrestors go in at the fixtures that slam shut, and the supply pressure is brought into a sensible range. That last item is often the reason the knock started in the first place.
The vent
The flue connection sits above the unit, held by a hood or an adapter. On these houses the venting is original or partly replaced, and a loose connection can rattle or knock when the burner runs.
A vent that is not secure is also a safety issue, so it is checked rather than ignored.
Expansion
Once the service is sealed behind a backflow device, heated water has no escape route and the pressure has to go somewhere. Pipes tick, and the relief valve starts leaving a trail on the garage floor a few minutes after the burner shuts off.
That trail is the giveaway that separates expansion from a bad valve. It begins with a heating cycle and stops once the water cools.
The heater
A loose stand, a scaled tank or a failing element can knock, but those come after the pipes and the vent are ruled out. The tank is examined last.
Working out which noise it is
Four candidates cover most of these calls: a fixture slamming, a loose vent hood rattling with the burner, expansion ticking after a cycle, and the tank itself. The house is walked with the water running and then stopped, the vent is pulled and checked, the relief line is watched, and the pressure is measured. The finding decides the repair.
A rattle at the vent is worth taking seriously beyond the noise: a connection that has worked loose is a venting fault, and that is a safety item rather than an annoyance.