Use caulk to seal cracks in the rim joist where basement walls meet the ceiling.
Seal gaps where plumbing and wiring pass through basement walls or ceilings leading to the outside or into the floor above.