Give us a picture inside your control box to help us understand what you have.

You can find a recommended wiring scheme on the CNC Drive website. If you understand that, and understand what's in the control box then you should be able to work it out easily.