You'll find three switches inside the Locomotive. You can find instructions by checking the northern part of the west wall. You need to hit the first and third switches, then go outside and hit one last switch on the smokestack to start the fight with GhostTrain.