Whirlpool Gas Dryer Model # LGR5636JQ0

My dryer will not hold heat. I started by checking continuity (not that I know what I am doing), by passed the thermostat by the blower, thought it was the problem, in the mean time, I lost all power, figured out it was the switch where you close the dryer door, replaced it, then the motor decided to start smoking, replaced it, now it ignites, blows flames, heats up, then I open the door minutes later, and no heat inside. What can it be now?
Add pictures here
<% if( /^image/.test(type) ){ %>
<% } %>
Add image file

HomeOwnersHub.com is a website for homeowners and building and maintenance pros. It is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.