2003 Mercury Sable loses electrical power to everything momentarily while driving or when stopped it dies will restart dealer stumped any ideas thanks?

I have the same vehicle and had the exact same problem. It failed several times over a period of 1 1/2 years and would always restart until one day it just died. It turned out to be a faulty relay in the security system. Once the relay was replaced I never had the problem again.