This is a link that shows various motor types and how the leads are wired.
As someone new to the CNC world like you and me, I have found the
searching Google for information is the best way to get a lot of your questions
answered and use CNC Zone for questions that you cannot find answers to
by searching Google. Best of luck with your new CNC.