Pilot will light but burner will not come on. I have replaced the thermostat
Sounds to me like you have a bad gas valve.