Does not go to next cycle

The machine works well. The timer moves, and if I stop it and set it on the correct cycle it works. When it operates on it own it moves around and will continue to wash, it will not go to the next cycle. What do I need to replace?\

\Thanks
Mark

Maybe you could oil the timer shaft and move the timer around to loosen it up a little.