In your firmware make sure you have the correct steps per mm.
Steps per mm Calculator
Next, make sure jumpers are underneath the stepper driver. Then try the driver on another axis and make sure it works fine.
Also, check that the motor connectors are the same orientation.
I would also check for solder bridges underneath the Ramps board are not shorting anything out.
Hopefully one of those things will help you out.