The hot lead going into the headlight motor connects via a ground lug that is NOT grounded using a weird little bakelite standoff that can (and has) cracked and/or soaked up rainwater, allowing partial shorts. The apparent function of the lug-and-stand-off is only to support the little motor wire. In the doors (same motor & gearbox), the motor is grounded so the stand-off is not present but in the headlight system, the motor must be ungrounded to work in both directions.
On any Pantera that comes thru my shop, I disconnect the wire, throw the lug and standoff away, hook the wire from the loom to the motor wire directly using an insulated double-female spade connector and use a tie-wrap around the motor to hold the wire from vibrating. This may not be part of your particular problem but I recommend doing it to avoid future trouble in the area.
PANTERA INTERNATIONAL
A DE TOMASO CAR CLUB
Presents the De Tomaso Forums
The On-Line Meeting Place for De Tomaso Owners and Enthusiasts From Around the World
Clicking on the banner will take you to the sponsor's website.