Train replacing ballast and sleepers