If it suddenly stopped, then suddenly started again, trust me, in the very near future, it's going to 'suddenly stop' again....
It does sound like a bad connection, so look at all the connection points. Trim pumps and their associated harnesses have a tendency to get wet and corroded, even in such a short time period...
SWITCH OFF THE BATTERY and pull each wire off in turn and give them a very thorough cleaning. Clean them to bright shiny, and when you are finished, protect it all with some liquid neoprene. If you're looking for some long-term protection, electrically, then have a look at these threads....
Diodes to extend the life of the solenoids...
https://forums.iboats.com/forum/eng...-trim-solenoid-potential-hack-for-longer-life
Bypass switch if the remote switch stops working, or the solenoids fry....
https://forums.iboats.com/forum/eng...es-outdrives/10635229-trim-solenoids-go-click
Chris.........