Why it happens
A cake rises because raising agents and beaten air make gas bubbles that expand in the heat, and then the flour and eggs set around them to hold the shape. If the cake comes out before the middle has set, or the oven door is opened too early and the temperature drops, the bubbles collapse and the centre sinks. Too much baking powder or bicarbonate of soda makes the cake rise too fast and then fall. Over-beating the batter after adding flour, or an oven that runs cool, can cause it too.