Cakes

When baking a cake, it rises great in the middle, but falls or doesn’t rise on the ends. Why? Help thank you in advance