This could be due to either overmixing the batter or not using enough leavener. Be sure to mix only until all ingredients are just combined, and use the appropriate amount of baking soda or baking powder indicated in the recipe.