The timer is likely damaged internally. Some of the contacts will over time get burned and will either not allow the circuit to be completed or will stick together. If you are very careful you might be able to take the timer apart and find and correct the problem. If not you should consider replacing the timer if the dryer has life left in it. Some of these timers are also available on E Bay as used items.