Dryer cutting off during cycle and starts back up

Hi,

My dryer cuts on and runs on 1st load of the day for about 30 minutes and shuts off. It sits for 5-10 minutes and will start up again on it’s on. It will continue this way until timer runs out. (timed load to take out the automatic cycle kicking it off through the sensor) I took it apart and cleaned everything from the drum to the vent hose. Replaced the heating element as one coil was broken. Seemed to work better but still cutting off during cycle and will not start till it sits and cools. I’m thinking its the motor but I wanted to make sure before I purchased one.