When foundation cracks become large enough they can open up the home to the outside air. The air that leaks into the home can cause very cold spaces in the winter and a hot home in the summer. Filling the gaps in the foundation with an expanding foam provides some aid in keeping out the outside air, but it provides zero additional structural integrity for the foundation which means it can only worsen with time.