I did something similar for a clothes drier. The thing was ancient (mid-80’s) but was fantastic. It was huge and you could dry maybe 3 comforters under an hour.
It stopped heating and it turned out there are solenoids that control the natural gas flow. Quick disassembly (back when products were made for easy repair) and swapping out two $8 solenoids from Amazon and I was back in business.