Check wiring to the trailer lights ( pig tails located under tailgate). A bad ground in your light harness will likely be the culprit. The hazards and turn signals also rely on a flasher relay to operate. Check out or replace ( located next to your fuse panel next to parking brake )