BMW Questions? Ask a BMW Repair Expert for Answers.
It sounds like a engine ground strap issue. First I would visual inspect the ground strap for green corrosion or rust it is on the driver side near the engine mount, give it a tug to make sure it is not brittle. I would then connect jumper cables from the engine block and the ground post under the hood.
You might have disturbed the wire or it just made decent contact for awhile.