Maytag Dryer

The timer on my dryer does not work in the regular setting. The dryer just keeps running. It heats for a short time and then turns off. Then I can see it ignite for a short time and then the heat turns off.