The BMW 3 Series offers fine performance, driving dynamics, technology and refinement, but electric rivals are catching up