Ground issues do that. Usually when there's a loose ground or connection broke.
I've had anything from lights on very dim all the time to tail lights that wig wag.