For those who don't know only a D1 3.9 has a distributor, information supplied in the OPs post. Same for other LRs with a similar engine.
The blue wire from the distributor goes to terminal 1 of the ignition module and the red wire to terminal 3 on the module, terminal 2 is spare.
The two white wires on the other side of the module go to the coil.