One of the things that Vitamin D does is the help to keep the immune system strong so that it fights off bacterias and viruses that result in illness.
If you often fall victim to colds or the flu, deficiency of vitamin D might be the reason.