Well, you could try disconnecting the "Y" end stop plug from the ramps board then just short the S and - pins together ( don't touch the + pin for gawds sake) - this is the same as what the switch does anyway. If it works on M119 then your problem is the switch. If it still does not register, then it may be the connection between the Ramps and the Arduino - try separating them then refitting. Also, check for continuity between the Ramps end stop pins and the Arduino.
_______________________________________
Waitaki 3D Printer