whirpool washing machine

hello . I’m having problems with my washing machine , the problem is that the agitator spins , but the tub will not spin . it drains ok . any suggestions?