Innate and adaptive immune responses to viral infection and vaccination