My board is not RAMPS it's Sanguinololu. I have tried changing the endstop logic but it didn't help. Actually now the extruder doesn't move at all no matter what I do. I was able to do homing and move the extruder left and right before I reinstalled the new marlin firmware so I assume the cables should be fine.