Z axis motor pinout

Here you go. The connector on the motor itself is this one.