Y-axis motor moving in only one direction

I had this happen to me when using TB6600 stepper drivers. All four of them on a new build were doing the same as you describe. I changed over to TB6560 drivers with exactly the same wiring and all worked well.
See the thread here;