My washer wont spin/agitate

Everything seems to work perfectly, except during the period where it should spin, it doesnot, it fills up with water, but doesnot agitates, then it drains normally as it always does, but no agitate!.

What should I do?

It sounds like a bad timer.