Washing machine will only agitate

I have a Whirlpool washing machine that will fill and agitate through the wash cycle and then stops. I replaced the timer. It completed one full cycle, so I though it was fixed. I tried to wash a second load and the same thing happened. Any suggestions?