Mine did the same thing until I figured out the backup light wire wasn’t properly wired; it’s the backup light on the tow vehicle that overrides the brake solenoid on the trailer.
If the wiring is correct you can stomp on your brakes, throw it in reverse, and backup a hill.
Most tow vehicles are configured for pulling trailers with electric brakes, when plugged into a boat with surge brakes everything seems to work fine until you try and backup a hill.
Tell you figure things out, if your trailer in like mine, you should have a key that came with your trailer to lock out the solenoid when its fully extended, fits on either side of the tongue in the groove behind the pin; only use when backing up!
Hope this helps,