Epidemic dynamics pose a great challenge to stochastic modelling because chance events are major determinants of the size and the timing of the outbreak. Reintroduction of the disease through contact with infected individuals from other areas is an important latent stochastic variable. In this study we model these stochastic processes to explain extinction and recurrence of epidemics observed in measles. We develop estimating functions for such a model and apply the methodology to temporal case counts of measles in 60 cities in England and Wales. In order to estimate the unobserved spatial contact process we suggest a method based on stochastic simulation and marginal densities. The estimation results show that it is possible to consider a unified model for the UK cities where the parameters depend on the city size. Stochastic realizations from the dynamic model realistically capture the transitions from an endemic cyclic pattern in large populations to irregular epidemic outbreaks in small human host populations.