Loose sensor won't prevent brake pads from working.
Now, whether loose sensor would disconnect the motor power forever (until you fix it), or won't disconnect it at all (until you stop pedaling or release the throttle) - I'm not sure. If engineers have done their job right, failed/loose sensor...