State three functions of foundations in buildings.

State three functions of foundations in buildings.