Hi Marco. Did you buy this bike new ? You need to download the workshop manuals and have a look at what these plugs and wiring is for. Some of the plugs, like the brake light switch I can see how to fix, but some of the others you need to look at more closely.
The front brake wires connect to a switch just under the front brake lever and master cylinder.
The front brake wires connect to a switch just under the front brake lever and master cylinder.