Some cheap Ramps clones use bad screw terminals for the PSU and the extruder/bed cables.
If you happen to have a weak 5V regulator on the arduino, you can also get very hot MOSFet´s.
Measure the 5V rail on your endstop-connectors. Is it lower than 4.8V?
I´ve seen, that a hot MOSFet touching the screw terminal, made it smell and smoke!
Make sure, your connectors don´t melt! They can cause shortcuts.
-Olaf