It sounds like the problem is with the electromagnet controlling the geyser gas valve. Since it works temporarily after cleaning the contacts, it’s likely either a connection issue or a problem with the control circuit.
The 587Ω winding seems to keep the valve open, so if it’s not getting...