Sleep deprivation prevents your immune system from building up its forces. If you don’t get enough sleep, your body may not be able to fend off invaders.