Open the peckerhead and make sure none of the wire ends are touching each other. Take 2 wires and measure resistance between them. When you measure a low resistance between 2 of the wires you have now located one winding. Mark them U1 and U2. Now check between 2 more wires until you get a low resistance. Mark these as V1 and V2. The last 2 wires are now W1 and W2.
Now if you want a delta configuration, connect U1, W1 and L1 of your incoming power together. Connect U2, V1 and L2 of your incoming power together. Now connect the remaining three wires together and bump for rotation.
If you want a wye (star) configuration, connect U2, V2 and W2 together. Then connect L1 of the incoming power to U1, connect L2 of the incoming power to V1, and L3 of the incoming power to W1. Bump for rotation.