Hiya, the 3 wire bundle coming out of the (electronic / hall effect) bean tin goes up throught the top of the motor and should plug directly into the ignition module that lives under the tank on the RHS. Another 3 wires come out of that and are ground (brown), 12V (black) and coil (Green&Black). See the diagram above. It is almost as simple as points ignition - even if it looks like spaghetti right now.
Something has probably failed, which is why the mess from the previous owner. The ignition coil likely. You can test the new one for impedance and see if it has any visible cracks or spark marks, but the grey ones do have a reputation for failing. It works just like any other standard coil though, except there are 2 HT connections, one to each cylinder (doesn't matter which). One LV terminal goes to Green&Black and the other LV terminal to brown. It might work well enough to try, but will be infuriating if it's already faulty.
Keep going, you'll get there, where in the world are you?