There's a movie from the 80s or 90s from when I was a child, the only information I can remember is seeing them use this magical gold dust on the wheels of the train and makes it slowly start moving, it was one of those old smoke trains. I can't remember the characters but I think the train was able to move through portals by driving into one on special tracks made for this one magical train? Also, they had to do something within a time frame which is why they needed to get the train moving! There was a little boy and girl, and a man conducter.
It's not an animation. Any help is so appreciated, I'm sorry there's not much to go on. :(