Causes
The usual causes, most likely first
Clogged dryer vent
A restricted vent traps heat in the dryer. Safety devices shut the heat off, and clothes take forever to dry.
How to spot it: Weak airflow outside; dryer and laundry room get hot; long dry times.
The fix: Clean the full vent run, not just the hose behind the dryer.
Thermal fuse blown
The thermal fuse is a one-time safety device that opens when the dryer overheats. On many models it cuts heat; on some it stops the dryer completely.
How to spot it: No heat after a period of long drying times.
The fix: Replace the fuse, and fix the vent, or the new fuse will blow too.
Heating element (electric)
Elements burn open, especially after overheating.
How to spot it: Drum turns, no heat, breakers fine.
The fix: Test for continuity and replace if open.
Igniter, flame sensor or gas valve coils (gas)
The igniter glows to light the gas. If it is weak or the valve coils fail, the burner does not light, or lights and goes out.
How to spot it: Igniter glows but no flame; or flame lights and goes out after a few seconds.
The fix: Replace the igniter, flame sensor or valve coils as tested.
Cycling or high-limit thermostat
These control and limit the temperature. When they fail, heat stops or cycles wrong.
How to spot it: Heat comes and goes; very long dry times without a vent problem.
The fix: Test and replace.
Moisture sensor or control
If the dryer thinks the load is dry, it stops heating early.
How to spot it: Cycle ends with damp clothes on auto-dry; works better on timed dry.
The fix: Clean the sensor bars with rubbing alcohol; replace the control if needed.