If the motor hums, it can be for a number of reasons.
1. One of the phases is not connected.
2. One of the phases is swapped. Don't just try it another way... See below.
3. One or more of the hall sensor wires is not connected, or in the wrong place, or blown.
What is needed...
With these motors, the three phases need to be in the correct order.
With the hall sensors the three sensors need to be in the correct order.
As well as the correct order, U,V,W and A,B,C sensors the correct A wire must be matched with U wire.
With speed set to slowest and humming, turn the spindle by hand
1. see if it starts to run and run roughly. A phase is missing. Hall sensors probably OK
2. might just move from once stuck position to the next. Phasing/sequence is wrong.
I can describe a procedure, albeit crude, that you can get it working, but first off see if 1 or 2 above is the problem.
The procedure involves having all of the sensor wires connected and attempting to run the motor with one phase disconnected.
You can do all these tests at the slowest speed setting, and the current limiting should stop any surprises. Turn it ALL OFF before each change.
You start the motor with one phase (SAY W) disconnected, help it to start by hand.
If it does not run, move two phase wires along one to V and W form U and V and try again.
Help it to start by hand.
If it does not run, SWAP the two wires and try again.
Eventually it WILL run if all of the sensors are working correctly.
Then connect to other phase to the connection that remains.
If it runs in the wrong direction swap the A and B hall sensor wires, and start again. Always have all the sensor wires connected.