Which body system is primarily responsible for defending the body against pathogens and foreign substances?