connect your printer to your host and type in g-code M119
that will show the status of your endstops and if they are triggered or not
if it isnt being triggered when you home that axis, the head will crash.
if M119 shows that endstop isnt being triggered check to see if there are broken wires from your endstop to your board.