Hi,
the four wires of the new stepper are almost certainly a two phase bipolar stepper and the wires are A+, A-, B+, B-.
Your original stepper, with three wires is unipolar.
I think you'll have to use a different driver. Unipolar motors are very seldom used in CNC applications.
Craig