The Ankara – Tehran train has been cancelled until further notice due to the ongoing war in Turkish Kurdistan. You can get as far as Salmas, Jolfa or Tabriz, from where you need to cross the border by other means. Once in Turkey, you can catch a train again in Kars.