Well you have some issues there.
go thru and fix all of the exposed wiring.
To replace the pip you must pull the cap and rotor off the dizzy. The pip sensor is actually the electronic "guts" inside the dizzy, when mine started to go bad I would get random miss fire only after the car warmed up. If you Google it you will get instructions.