This is a very concerning symptom of foundation damage. The foundation has shifted more than an inch and freely allows air to enter the home. Spraying an expanding foam in these cracks may be an alright temporary solution, but we see problems like these get much worse all the time. Not only can the opening become wider, but the entire foundation could eventually collapse without a proper inspection.