That’s rough! RAM has changed up the tailgate wiring and hinge setup a few times, so it’s not as easy as swapping in a new one, unfortunately. You might need a wiring harness adapter to get the electronics working, but check with your dealer, they sometimes have conversion kits for these kinds...