If your dryer runs, but it isn't heating, test the thermal fuse. The thermal fuse is a small safety device that cuts off the dryer when it reaches a set temperature.
Unlike a thermostat, they don't reset themselves, which means they need replacing. Federal law requires thermal fuses on all dryers. Here are some tips to test for a burned thermal fuse on an electric dryer.
Locate the Thermal Fuse