Have you tried swapping the motor connections for a different axis ? that would tell you whether it is the motor or the driver. Your symptoms could be a broken wire. I had that on the z axis and it behaved very oddly.