It's difficult to impossible to diagnose wiring problems over the internet. That said, check your trailer wiring if installed(look behind the taillight cover on the driver's side in the rear cargo area for splices, etc. as well as near the tow hitch if applicable). Corroded or rusted sockets may also cause that problem.