Hello, i'm building reprap RAMPS 1.4 3D printer, but i want some explantation about endstops

If connect + to - it turns off printer

There is an third cable - blue - what it is?

It's all right? I thought that endstops dont turns off printer, but only tells printer that axis is on minimum/maximum.