Help-No responses-agitates but no drain or spin

My washer fills and agitates but will not drain/spin/rinse. Timer moves but nothing happens but agitate. Agitate stops when lid is raised starts when lid is closed. No filling occurrs after original fill.

I tried a new lid switch but there is no change.

I am about to buy a timer-is this the way to go???

Thanks for your help.