Quote: “if i jog it in the other direction it continues to move in the first direction.”
Having endstops configured incorrectly will prevent all movement in the reverse direction, but shouldn’t make it go the wrong way.
It sounds like your direction signals aren’t getting through to the drivers, or all 3 drivers are somehow damaged. You might need to use a multimeter to check that the direction pin goes from +5v to 0v or vice versa when you change direction. Be careful you don’t short anything when testing it though! Strange if it’s all 3 drivers, but the build quality of RAMPS boards is sometimes pretty bad and it may need soldering. Bent pins is another obvious thing to check, but almost not worth mentioning.