Need help rewiring loco please!

I have an old 2032 Lionel loco that ran great until recently. When I removed the cover I observed that two of the wires to the motor were broken off the motor and need to know where to resolder them. What motor posts do the yellow, green & blue wires connect to. Thanks for helping me get this old girl back on the track!

http://pictures.olsenstoy.com/2023.htm

yellow and blue to the brushes, green to the motor field coil.

In case you were wondering, it doesn’t matter which of the yellow and blue wires goes to which brush. In fact, many locomotives were wired with two identical yellow wires instead.

While you’re reattaching those wires, you might want to consider rewiring the headlight to one of the brush terminals, to get directional lighting. (If it lights up running backwards, use the other brush.)