If your controller is ramps compatible try [
github.com]
NB this is new firmware and will erase your current firmware. make sure you can put it back before you start.
If this doesn't work its hardware. cables in backwards or around the wrong way or a fault somewhere.