It happened in far north suburban Round Lake near Route 134 and Porter Drive.
A Metra spokesperson says the vehicle may have gone around crossing gates.
Metra trains were running again with delays by 10 p.m. on Wednesday.
Shuttle bus service was in place for outgoing passengers from Grayslake to Fox Lake.