If you know your travel dates and want the best value for money, opt for train tickets. If you already own a rail pass, check the schedules and book your reservations.
If you want full flexibility, opt for rail passes and select the countries you wish to visit.