An investigation is now underway into what caused one of the trains to be travelling on the wrong track.