After defeating the first boss, you'll want to go through the nearby doorway and work your way up a series of metal ramps. Once you arrive at the top, a cutscene should trigger where your character jumps onto the moving train.