A method and system for automatically controlling a track-bound vehicle