No longer charging found broken wiring

Work was previously done some 10 years ago and this connection has been broken.

Is this the cause of discharging and what harness do I get to fix it. Electrical is not my area of expertise.

IMG_9907.jpeg