Once a maker of cellphone batteries, the company is in the running to become the world’s No. 1 seller of electric vehicles.