This could be caused by an ingredient that wasn't measured correctly. Too much baking powder, for example, can cause the muffins to puff up temporarily and then fall flat. Be mindful and measure accurately.