Rail lines have reopened between Wolverhampton and Birmingham New Street after earlier disruption caused by trespassers on the line.