Unfortunately the motor wire colors and orders are not standardized. the four wires build two phases, and you will need to have one phase on one side of the connector and one phase on the other. Properly measuring this is straight forward if you have a multimeter: the phase pairs will have resistance. If you do not have a multimeter you can use a DuPont wire to "short" each pair (while not connected to the board of course) and trying to turn the motor by hand. Should be harder when a pair is shorted than when it's not.