Overbeating the cake incorporates too much air in the batter which collapses quickly after rising. Make sure you only beat for the amount of time given in the recipe. Adding too much leavening (baking powder) will also cause your cake to sink or have a flat top.