To diagnose this problem a critical question must be asked. This can be done over the phone and save a wasted trip.
"Could you immediately restart the dryer or did you have to wait a while?"
In almost every case the answer is, "I had to wait for a while."
This means that the motor overload thermostat had to cool off. This thermostat kills the motor circuit and is the only component in the logic of a dryer that resets itself and allows the dryer to come back to life. Conclusion, the dryer motor is bad. Replace it!
Many a novice has gone to the trouble of vacuuming or even blowing the lint out of the motor windings figuring that would fix the overheat issue. WRONG!
Beyond a bad motor diagnosis requires a trip and a babysitting job. Only a very rare circumstance will result in any other solution.
If the customer can immediately restart the dryer, it is not the motor. The other rare possibility centers around the cutoff sensing system on a computerized dryer. Investigate the moisture sensing bars for gum or dirt shorting them out causing short cycling.