If there is too much flour and less liquid ingredients it can make the cake dry. And if you bake it much longer than needed, it can dry out the cake. Measuring your ingredients properly will ensure a moist cake.