Issue while homing my Y-Axis

Hello guys, first of all sorry for my bad English. But now i have the biggest problem i habe ever had with my K8200.
When i connect my K8200 with my computer and then i try to home my y-axis, the print bed is moving into the false direction. Then it came to the frame and you hear a terrible noise, because the Print bed tries to move, but it could Not.
So Can anybody help ne with my Problem, the print bed only has to move into the direction of the endstop.

Thank you!

Is the bed moving to the end stop or away from the end stop.
If it is moving away from the end stop for a little ways and then stops this say you have an open on the end stop
Make sure the wires are on the outside legs.
Check for continuity from the end stop to the connector.