A vaccine puts into the body weakened/dead pathogenic material, which by itself is incapable of causing disease. How does this help to protect the body in the case of infection by a live pathogen?