The electrics I’m not sure about, but it sounds like the car went into limp mode as you drove it back...my hunch is head gasket, as it sounds like a leak has sprung, causing the misfire and sludge in coolant tank (most probably oil).
Get the cylinders compression checked and, if you can, scan for codes...
Get the cylinders compression checked and, if you can, scan for codes...