One reason cupcakes sink in the center is if the batter is over mixed (too much air gets incorporated). By mixing only until the ingredients are combined will prevent sunken cupcakes.