The error that you are getting it will be F5 and then a letter and then one more number .
Can you tell me what the last letter and number are ?
here is what the tech sheet says .
F5-E1 Self-clean latch will not lock
Can you Explain thermal thingy better ?LOL
Do you mean thermal fuse in the rear , oven sensor inside the oven ?
That is the correct control .
Ok so the control ,the touch pad , the sensor, door latch, have all been replaced .
So you have had the entire electronics replaced ,the oven temp sensor ,and the latch assembly
The code is a latch issue <but your not even trying to clean the oven ,so the latch should not come into play .
The oven sensor could have been out of spec ,telling the control it was above 500 degrees and then the control says OH door closed ,oven temp above 500 degrees GEE I must be in clean I`ll lock the door .
But that not the case #XXXXX new sensor #2 just in the pre heat mode,
But them when the door locks it no longer heats .
So Here is what I thing is the issue Either the control is bad ,or it has been miss wired ,or the latch has been miss wired or you have a bad wire harness .
So you have replaced the control Highly unlikely two would be bad .
You replaced the latch ,also unlikely the new is bad ,
****So I think you have a bad harness***** Which is a PAIN to replace.