X axis grinding and moving in wrong direction with controller

I was in the middle of a curve. When my X50 woodworker started making a funny noise and not moving correctly. I turned it off. unplugged everything plugged everything back in. Turned it back on, tried homing and it still made the grinding noise. A I tried moving it with the controller, Y and Z moved fine, but X moved in the opposite direction. I disconnected the top rails and accessed the wire and connectors for the X motor. All connections seemed fine. I am not sure what else to try.