If it is a stepper motor machine, 90% chance one phase of the stepper is disconnected. Happened to me last week with my lathe and a bad plug/socket connection. Two minutes' work with a multimeter identified the problem and 10 minutes of work fixed the problem.
Randy