Not so much a thermostat, but a valve, controling the gas, Most gas cookers have a shut of valve, If you have a glass top, will shut off the gas, if you close it etc. I would think that the safety valve has closed, shutting off the gas to oven and grill, for whatever reason, but that is the part you need to check, usualy in the back, follow the gas pipes
SD
June 2012