DETROIT — General Motors plans to add 3,000 jobs to accelerate electric vehicle production and enhance vehicle software.