Help with a 2000 Dodge Durango wiring issue?

I’m working on my 2000 Dodge Durango 5.9 4x4. I’m having serious power loss and some issues. While inspecting possible fail points, I came across my alternator pigtail and discovered that the wires were exposed and twisted. I also discovered a third wire that comes from the same area but isn’t connected to anything. I searched everywhere and couldn’t find a sensor or connector anywhere that is missing a wire. Any ideas as to what the heck it goes to. My alternator pigtail is a 2 wire. I’ve attached pics below.

07D1DC84-5464-4E39-B3C7-FB00598EC6E1.jpeg

8948275A-AB0C-4543-8F29-D3FDEB85C791.jpeg

42B42036-9458-4967-B641-51E6C605F1D1.jpeg

36AD1172-F11B-4970-84EB-D59379820E5C.jpeg