It only lights up about 10 seconds then goes off. The dash board lights goes out too.
Short circuit somewhere in the lighting system. Your lights are all wired through the light switch, and if something shorts out, like a bare wire in the tail lights rubbing against metal, it will cause the breaker inside the light switch, to go off, until it cools down, and then it will come back on, and then go off and so on. Find the short. Lights, dash lights, door lights switches, dome light, tail lights, and so on.
initially, they come on as a way for the driver to check the bulbs and make sure that they work. if yours dont come on at all or none of them work. that could be a computer failure, an ignition switch issue or a bad fuse in some situations.
Go check your relay for your headlights, remove and test with a 9volt battery if you have one laying around, it should make a click sound. Look at the bottom of he relay and you'll see numbers, put the 9volt battery on numbers 85 and 86. If you get a click out of it, bam you should be money. Now you might have a computer issue or there is a ground wire loose or a power wire that is touching ground somewhere or haha sorry it could be lots of things, you are having to many amps on that circuit and it pops a internal virtual fuse in the computer which later it will reset itself, or your stalk switch is messed up. Sorry to write so much I know it really dont help much but that's what it could be honestly, oh yeah forgot, do this first, for Sh!T and giggles, check the connection at the light bulb and the headlight bulbs themselves.