Hello and welcome!
Your description of your problem is a bit light on details. But, it sounds to me like your motor is fine, since it "moved". I would have to guess that your battery is weak. Fully charge your battery (or attach jumper cables to a known, good battery) and give it another try.
The lift motor ONLY works on battery power. Nothing else has the Amperage needed to drive it.
If your trailer has the manual lift device, use it to lift the top enough to gain access to your battery if needed.
- Jack