Here's a link to the first pattern I found when I searched for the words "gingerbread train".
http://familyfun.go.com/recipes/special/feature/ff1106-gingerbread-train/ff1106-gingerbread-train.html
If you're not happy with this one, do a search. There are several different designs floating around out there.