Go here:
http://209.41.165.153/stepper/Tutorials/Tutorials.htm
They explain how to identify step motors coils and such.
It is very difficult for us here to help you with just a picture of the round plug. You may need to take the motor/brake assemblies apart to futher identify which wires are motor, which are brake and which are limit switches. There may even be encoders and such in there.
If you get it broken down futher, perhaps we can be of more help.
Eric