too much leavening agent like baking soda or powder can cause a cake to rise too high too quickly. the gas from the leavening agents builds up and escapes before the cake bakes through in the center. this causes the center to collapse and makes your cake layers sink in the middle.