General Electric Co plans to buy 25,000 electric vehicles from makers including General Motors Co over the next five years, in a move it said could spark demand for the charging equipment it sells.

The largest U.S.