This for sure would help if we knew which coupler you had.
You mentioned a travel trailer, this ball coupler is very common on many TT's.
The first thing to understand if this is your first time unhitching, is how the latch lever works and "how" to release it.
This is in the "latched" position.

A cross section

This is the "unlatched" position. If this is not in the unlatched position the ball will not come off.

A cross section

In order to unlatch this type of coupler, the lever on top "slides" back towards the TT. It does not pivot up like many small boat or small utility trailers. In order to slide it back, you must release the pressure from the ball acting up on "after" unhooking the WD bars.
Meaning,
Jack up the camper and the truck with tongue jack. Go high enough to take the pressure off the WD bars and remove WD bars.
Now lower the tongue jack and look at the receiver pin box and the hitch shank. When you lower the camper enough, there is a slight gap that will show at the top of the shank and the pin pox when the truck stops going down and the camper is only held by the jack. Stop at that point. This means the upward lift pressure is off the bottom of the latch pawl exerted by the ball from the upward jacking force. If you go too far, then you loaded the pressure again by the trailer pushing down.
See this pic for the gap between the top of the hitch shank and the top inside of the receiver. The red arrow is pointing to the gap I am referring too. You need to stop lowering at the "instant" the gap appears. If you go too far, the gap is there but the trailer is now pushing down on the ball. You need to truck height at rest and the trailer height at the same resting point and not lower or higher.
Once that gap "just" appears, then stop and try slide the latch handle back towards the TT. If it is still in a bind you may have have gone down too far. go up a hair higher on the jack. If the latch is still not sliding back, there could be trailer pressure pulling the on the connection. Chock the trailer wheels from rolling forward or backwards and put the truck in neutral to release the pressure from the trailer trying to roll backwards.
The latch has to be released or this is never comeing off the ball, and you did not say it was. That I saw anyway, if you did I missed it sorry.
If you made it past the latch being released and it is now full back and still cannot get the ball out, you are still in a pressure bind but at least we know you are past the latch being back the way it is suppose to be.
The bind comes from the trailer pushing "into" the truck, or the truck pulling away from the trailer. Again, chock the trailer from rolling forwards to backwards and gently back up the truck a very small amount so all of the front part of the ball coupler can unhook from the tow ball. Sometimes the truck in neutral will release the pressure. This can also be doing by jacking the camper up high enough and it will force the ball to wiggle out, BUT the trailer or truck has to move to allow it to wiggle out. If the camper is rolling backwards and the truck locked in gear, it still may not come out with lifting.
Tell us if the trailer and truck on level ground? and did you chocks the wheels on the camper?
Hope this helps
John