The foundation of your house is…. well your foundation. If your foundation was laid out wrong, or you are having problems with water or expansive soils around your foundation, you will see them manifest themselves in other areas of the structure.
If your foundation does not have an adequate water drainage system to drain excess water and you do not have a sufficient water barrier on the exterior basement walls, you will have a damp or soggy basement and subsequently, this will lead to mold.