I am new to the use of stepper motors but the wiring to the X axis appears wrong when compared to the other motors. One assumes all would use the same wiring convention
X.jpgZ.jpg