Motor buzzing but not rotating

Hey,I’ve made the connections as in my scheme but motor seems to buzz but not actually rotate when I switch it on.
Any suggestions?

If it is a stepper, try swapping any two wires.