What Causes A Dryer Drum To Stop Turning

Electric dryer stops and startsichael i have a whirlpool electric dryer that will run for a while, shut itself off, andafter a whilestart again on its own then run a bit and shut off againhe dryers heating element works and the motor runs smoothly, but it even goes off and on when its empty.