washing machine timer replacement and install

my washing machine timer is not working correctly you can set it but after it fills then washes it stops wont empty or spin what can I do ? if it needs to be replaced how do I do it and is it hard to do?

[FONT=Arial Black]can someone get me an answer do i need a new timer and if so how easy is it to install[/FONT]