Ericsson and Nokia, two of the world’s largest telecom equipment providers, are betting on next-generation 5G technology to drive growth, after posting mixed results over the last few years amid intense competition from Chinese equipment manufacturers and weaker spending by wireless carriers.