Here's how I railroad things. I tell my players something like, "You guys are kind of spinning your wheels here. How about we go here instead?" If the story isn't moving them, then I don't mind taking it out of the game to see how we can get some forward motion back into the narrative.