Check the endstop itself to make sure it is not shorted.