What is the primary function of the immune response in the human body?
A. To regulate the body’s temperature
B. To protect against and eliminate pathogens and foreign substances
C. To produce hormones for growth and development
D. To digest and absorb nutrients from food