If the lock is stuck, then apply some WD-40 on it as well. The lubricant will loosen up the jammed parts. After applying, twist the lock and exert gentle force to open the door.
Once the door opens, close it and open it again. Do this a couple of times to ensure that the door is working fine.