Car wont start unless door is open

when we got the car, we noticed that this connector had been fried. Also the owner before us was mr.jenkyPants so a lot of things are unplugged but seem to have no where to go.View attachment 1715879974
There is also this bulky black wire that appears to have gotten very hot at some point.