Your cakes can fail if you forgot to add baking powder or used an expired one. If your pan is too big, or you over whisked, the chances of your cake falling flat are high.