Doors and windows jam

Reason
Foundation slightly sags.
Windows and doors are painted badly.

Solution
Erect the foundation by means of a piece of shingle under one side.
Paint them properly, also the bottom and sides.