Most likely the problem is a clogged vent inside walls which caused the moister to stay inside the dryer and overheat to the dryer.
If it's not heating at all, probably the thermal cut off on the heater box is blown.
- The part number for the thermal cut off kit
AP3094224
Gene.