Bmw beat forecasts on Wednesday thanks to higher prices and strong sales of its new electric vehicles.