TORONTO—Rogers Communications Inc. announced an agreement Monday to buy Shaw Communications Inc. in a deal valued at $26 billion, including debt. Under the plan, Rogers will pay holders of Shaw’s class A and B shares $40.50 in cash per share, while the Shaw family will receive some of their payment in Rogers shares. Shaw’s Class B shares closed at $23.90 on the Toronto Stock Exchange on Friday. As part of the transaction, the companies said Rogers will invest $2.5 billion in 5G networks over the next five years across Western Canada. Rogers also says it will create a new $1-billion fund dedicated to connecting rural, remote and Indigenous communities across Western Canada to high-speed internet service. “This combination of two great companies will create more jobs and investment in Western Canada, connect more people and businesses, deliver best-in-class-services and infrastructure across the nation, and provide increased competition and choice for Canadian consumers and businesses,” Rogers CEO Joe Natale said …