You either didn't spoon & level or weigh your flour, leading to too much flour, or you didn't beat things in for the amount of time and at the speeds specified in the recipe below. With cakes, those things are very important.