If it's hitting the endstop and the motors don't stop then the endstop isn't working.
You need to connect up a computer running pronterface or repitier and send the printer M119 command(s) to test the endstops
An M119 will show if the switches are triggered when pressed