Boat died at the lake, near the ramp on our way home. Next day tried to start it in the yard. Cranks over fine, Has fuel pressure but no spark. Got a new cap and rotor, that Didn’t fix it. Then checked connections again, pulled apart the main harness on the front of the engine by the 50A breaker, put it back together. Boat fires up perfect. Ran for few min died. Started again, shut it off with the key. Tried starting again, Wouldn’t fire. Unplugged and re plugged in main harness again. Boat fires up??? Then sometimes that doesn’t work either?

Also when it’s cranking over but not firing up, the perfect pass will beep at me like it does when I turn the ignition on

Already put 30 plus hrs on it in June, and everything was working fine......?

Anyone have an issue like this before?
All help much appreciated. Thanks !