What causes sneezing when we are ill with a cold or flu?

What causes sneezing when we are ill with a cold or flu?