washer will not spin or agitate

My washer will not spin or agitate, I think it may be the motor or the motor control board but I don’t know how to test them to see which one it might be. Any suggestions? Thank you