hotpoint washer wont spin or agitate

my washer just stopped agitating and spinning, it will fill and drain, belt is in good shape, for the last year ive had to manually go through the cycles on the dial because the timer switch went bad