Mannen avled efter att hans bil kolliderat med ett godståg i Marks kommun.