washer won't spin or agitate

Washer won’t spin or agitate.
lid switch works
motor,belt and pully spin but drum won’t turn on spin or agitate.