You can sell your house with foundation issues, but you are obligated to disclose all issues and prevent water from entering your home. We would suggest you take care of your foundation issues before selling; it’s not only good business but also peace of mind in that you left your home in good condition for the new owners.