In order to answer this question, we should know what a pandemic means: it means a global epidemic.
A lot of epidemics are very local, for example Malaria is limited to places where mosquitoes are very active.
HIV/AIDS can be found in all parts of the world, so that makes it a pandemic - it goes everywhere humans go, because it can survive in all conditions where humans live
The theory of fluid intelligence is based on the distinction between the fluid and crystal intelligences. The crystal intelligence is based on the knowledge that one has already and the the fluid intelligence is the intelligence to respond to future and unpredictable challenges.
I think that this distinction is very fitting and that the fluid intelligence was probably the one that drove human evolution; and perhaps is the more relevant of the intelligences.
<span />
Food, water and shelter
Pests invade human places in order to obtain the resources they require for survival, namely food, water and shelter. Therefore, if pests obtain access to these resources, they are likely to stay and reproduces, resulting in an increase in pest population in the area. Therefore, the best measure for preventing pest infestation is to prevent access to such resources.