A 12-year-old rider of an electric motorcycle suffered serious injuries in a collision with a parked vehicle.