What kind of sealant to use by foundation?
Sikaflex or similar is the standard, however that gap seems pretty thin.  Is it less than 1/4"?  You can get this in a self leveling format or not.  My best guess would be to not have the self leveling due to not being able to insert a backer rod to prevent the caulking from dripping too deep into the gap.