In the last decades, the frequency of pandemics has been increased due to the growth of urbanization and mobility among countries. Since a disease spreading in one country could become a pandemic with a potential worldwide humanitarian and economic impact, it is important to develop models to estimate the probability of a worldwide pandemic. In this paper, we propose a model of disease spreading in a modular complex network (having communities) and study how the number of bridge nodes n that connect communities affects the disease spreading. We find that our model can be described at a global scale as an infectious transmission process between communities with infectious and recovery time distributions that depend on the internal structure of each community and n. At the steady state, we find that near the critical point as the number of bridge nodes increases, the disease could reach all the communities but with a small fraction of recovered nodes in each community. In addition, we obtain that in this limit, the probability of a pandemic increases abruptly at the critical point. This scenario could make more difficult the decision to launch or not a pandemic alert. Finally, we show that link percolation theory can be used at a global scale to estimate the probability of a pandemic.