if you put too much flour in, the wet ingredients will absorb the flour leaving your cake dry and crumbly. your cake can also end up dry if you don't add enough butter or eggs. make sure you follow the recipe correctly next time and always double check your oven temperature.