AE86 headlight switches often cause problems. Usually meaning the dash lights don't Work, but I've had one that would only intermittently turn the headlights on.
You can fix them by pulling them apart and resoldering the connections on the little board inside. Check and clean the contacts for the headlight switch too. Hopefully should get you running Again.
Hen