Tighten the screws on the hinges as much as possible and then try closing the door to see if the problem is fixed.
Tightening up door hinges.
If you encounter movement at the hinge screws they need to be retightened.
First check that the hinge screws are tight.
If not you might need a bit more shim or to add a small one to the center hinge which will allow a balancing between the two.
On the latch side a door is cut at a slight bevel to make it easier to close.
How to adjust a spring loaded door hinge.
If one is loose remove two or more screws and try driving in longer screws.
If the hinge screws have been loose for only a short time you may need to tighten them with a screwdriver.
If your door rubs near the top or drags on the floor use a screwdriver not a drill to tighten the screws.
Then tighten the screws back up and check to see if the door swings evenly.
A spring loaded hinge contains a spring inside the hinge cylinder that helps close a door.
Make sure all the screws are tight.
Tighten the hinge screws in the door and the jamb.
Next add a piece of wood shim or other hard material behindthe hinge.
Tightening the door hinges may solve the problem by pulling the door back toward the jamb the hinged part of the frame so it no longer catches on the frame when you try to close it.
Open the door grasp it by the lock edge and move it up and down.
If a door binds open it grasp the knob and lift up to see if a hinge is loose.