A person has been taken to the Royal Victoria Infirmary, in Newcastle, after a crash involving a pedestrian in County Durham.