The only way to fix a sticking door caused by foundation settlement is to repair the foundation. Repairing a foundation damaged by differential settlement is not a DIY project. Only an experienced professional foundation repair contractor should ever fix a foundation problem caused by differential settlement.
The two most common repair solutions for differential settlement are push piers and helical piers. The procedure is called underpinning and will stabilize the foundation and prevent your door from getting stuck again.