Follow the wire from the trim motor up inside the cowling and you'll see it connects in via 2 or 3 wire connectors )which could themselves be the issue, so give them a looking at).
If you unplug them you can jump 12v direct to the trim motor then - if it's a 3 wire pump you usually have a black (earth), and then green and blue wires for up & down. If it's a 2 wire motor, then one goes to +12 and the other to earth.
You can get a good earth from the starter motor mounting bolt, and 12v from the starter motor solenoid which is the biggish unit on the side of the motor with the red cover and heavy duty leads on it.
If that doesn't work and it's the motor that is shot, then there's usually a manual release valve on the stbd side of the trim assembly. Look down the side of the of the transom bracket and low down there's a hole through the bracket that gives access to a plastic bolt on the side of the trim assembly. The issue with this is that it's underwater and often "pre-knackered" by a previous owner. But sounds like it's an electrical issue based on your note, so just jumping the trim pump power stands a fair chance of getting the motor trimmed up so you can get it on to the trailer.
__________________
|