The headlight wiring is probably the easiest to follow. Red wire (power) to the dimmer switch. Gray wire and gray wire with trace. Gray to headlight (low beam) drivers side, splice and across grill to pass side low beam. Gray with trace (high beam) same route as low beam. Head light connector has three slots with wire Gray,gray with trace and black.The black one is the ground, usually leads to a screw on a rusty grill. Clean that up for sure. Make sure your grill is grounded. Turn signals are grounded to the grill as well.
How much rust you have will affect ground. The grill is grounded via the fender bolts to the grill which is grounded via the tub to fender bolts. The tub is grounded via the frame to tub bolts IIRC. Frame is grounded by web strap to the engine block. Grounds are the biggest culprit of electrical things. Sounds like a pretty hokie way of grounding. When things get rusty, ground goes away.
If your dimmer connector needs to be replaced, you can get a new one here and do some splicing.
https://www.repairconnector.com/products/Dimmer-Switch-Connector-for-Ford-Chrysler-AMC-3-Leads.html
Looks like it is out of stock, if you can't wait or find one somewhere else. the other GM Ford connector will work fine.
As all have said, dimmer switch is generally a problem. New ones are $10 or so. Found out why my lights would only work sometimes when I got irritated and kicked the dimmer switch and lights came on.
Best thing is to do what shum8 suggested and use relays.