The effectiveness and limitations of immune memory: understanding protective immune responses