Judging from the style of the base (stamped sheet metal) I would venture that it was made by one of the toy steam engine companies, like Weeden, Bing, Fleischman, Tucher & Walther, Mamod, Wilesco, Cheddar, Krick, or Hermann Bohm.
Even though they made steam engines, many of them also made little generators that would create small amounts of juice when coupled to the flywheel with flexible belts. It looks like it might be a bit young for some of those manufacturers, judging from the construction of the insulating base and contacts.
Yours might be a generator (which can also be made to run as a motor). What voltage did you use to coax it into action? 3 volts? Is that a reversing lever at the bottom?