There are a few factors that could cause this problem. First of all, the muffins could have been under-baked. Another reason might be that the right oven temperature was not used, that's why it's best to follow the recipe precisely. Finally, there is also the possibility that the leaveners used (baking powder, baking soda) have expired. Always check the expiration date before baking.