Two newcomers to the electric-vehicle market, Nidec Corp. and Foxconn Technology Group’s automobile arm, unveiled an agreement on supplying electric powertrains — the collection of components including the motor, gears and drive shaft that propel a vehicle.