No heat and timer doesn't move

My dryer quit heating earlier today. I tried turning the timer and then it wouldn’t turn back on. I took the back console panel off (after disconnecting power) and removed the timer assembly. When I pulled the motor off it was frozen up. I got it to turn a couple of times and reinstalled it into the timer assembly. I could then hear the different gears as I turned the timer. I reinstalled everything, but still have no heat and the timer still doesn not advance, but it will restart now after moving the timer. Where do I go from here?