Utility Iberdrola has agreed to buy a majority stake in British power network Electricity North West (ENWL) in a deal valuing the company at roughly 5 billion euros ($5.4 billion) and would boost the Spanish group's operations in Britain.