A failing foundation can result in sagging flooring and out-of-plumb doors. A structural engineer can recommend corrective measures.