Hi,
please confirm that it moves in only one direction when you use MDI comands to move in either direction.
If so you need to use a multimeter and measure the Direction output of your breakout board, it should be logic high
in one direction and logic low in the other direction. If that checks out then you need to look to your stepper driver.
Can you substitute the Y or Z stepper driver for the potentially faulty X axis stepper driver? It would either rule in OR
rule out the driver.
Craig