It's kind of hard to give exact advise without knowing what drives are fitted.
What drives are they?

It could be the drive has died, but I'd be wanting to know why.
Are the Z and A steppers comparable sizes?
Did you let the drives fully power down before changing any wiring?