South Western Railway said that all lines were blocked and trains were cancelled due to the incident between Andover and Basingstoke.