The orange wire is pin 1. The socket should have a 1 or some kind of mark to indicate where pin 1 goes. If the head light comes on, but loco runs backwards, CV29 can correct this.
CV29 calculater: http://www.dccguy.com/wp-content/uploads/2018/01/CV29.jpg
Joe
CV29 calculater: http://www.dccguy.com/wp-content/uploads/2018/01/CV29.jpg
Joe