There are a few reasons cupcakes can sink. Either they were over mixed, the leavening agents were expired or you used too much or too little. Or, the cupcakes could have been overmixed, causing a texture change with the development of gluten from the flour.