You might have over mixed the cake batter, which gave it that dense texture. You want to mix the batter just until the ingredients are incorporated. Another reason might be that the ingredients added were cold. Try setting them at room temperature ahead of time for future bakes.