Either and/or bad plug from trailer or bad adapter, depending what U R doing. Need more info: Is it a straight bumper pull, plug into 4 pin, or is it a bigger trailer with double wheels and electric brakes and such and 7 pin plug in, and whether or not adapter used..
ADDED: On MY 19, I have to have truck off, doors opened/closed ref shut down system, before I plug into 7 pin and I am using an adapter. I also found my "4-6" pin adapter was getting worn, and I had to replace. If I do not shut down the truck, it has a bad habit of blowing 20 amp cartridge fuse for tail lights.
JUST A THOUGHT: Check PW from dealer. They may have installed the control and module but NOT flashed the BCM. Has it worked before?