If you tap the ehadlight and it comes on,it is not a relay issue as obviously power is there. The bulb could be going bad or the socket is corroded or loose. For the tail lights and fogs I would test them with a multimeter before just swapping stuff out. But that would sound like a relay problem. Wiring diagrams are in the factory manuals.
Factory Service Manuals