As I understand the situation, when the truck is running there is proper voltage to the trailer/camper plug at the rear of the truck. Even so the connection may have sufficient corrosion to prevent the current from the truck to the camper. Best to clean anyways.
Next, where is the wire from the plug to the battery, trace it back, there may be a fuse, check the fuse. Then remove the wire supply at the battery and check for voltage from the trailer/camper plug, no voltage, double check the route, you may a broken or disconnect line.
Good luck.
rick