dryer not working

you have any idea why my Whirlpool dryer was working in the morning and not working in the evening. I have replaced the on/ff switch and you can here the timer ticking it is 6 years old