Motor won’t stay running

Couldn't that also indicate a fuel delivery problem
Yes but op was convinced it's an electrical issue, so the fuel will more or less prove it is or is not a fuel problem