If the door is warped there's nothing you can do except replace the door.
Are you sure it's not just swollen and is catching on the frame? Humid conditions can cause timber to swell.
Look on the edge of the door and inside the frame to see if there are scuff marks where the two pieces are rubbing together.
If that's the case, remove the door and plane down the proud sections.
You might have to remove the lock, depending on the problem area.
Ideally you should have a gap the width of a penny between the door and frame to allow for swelling.
Big Softy, February 2007