Ok had to replace the trailer light plug. When I have the lights on and mash the brakes then the trailer lights go off. If I don't have the lights on and mash the brakes the brake lights stay on. The turn signals and flashers work fine. Thanks for your help.