I've had this happen on a horse trailer where the previous owner had miswired the trailer plug when they upgraded to a seven pin. I removed the plug, cleaned the connections with contact cleaner and switched the different bulb wires around until I could fix the problem.