Ancient history

Why did the English not attack vikings when they invaded?

This premise isn't accurate. The English did fight back against Viking invasions. During numerous raids and attempted settlements throughout the 8th, 9th, and 10th centuries, various Anglo-Saxon rulers, like King Alfred the Great of Wessex, organized resistance and achieved significant victories against the Vikings.