You have a transfer switch. Check all the connections to make sure that they are not loose. Then, if you have a voltage/surge protector, check for loose connections there. After that check the main power connections at the breaker panel. Though it would not cause the failure that you have, if you happen to have a power reel, unplug and pull the cord all the way out and remove the access hatch. Power connections inside have been known to loosen. Don't ask me why I know!