Network Rail is launching an investigation after a near miss involving a workers’ van and a train on the Midland Main Line.