check grounds at the trailer lights then look at the hitch ball then the connector for the trailer lights somewhere there is a bad ground.