BMW 535 2008 losing power to shifter and center screen simultaneously

hello guys I’m having an issue with my car, i was waiting in line at the car wash on a hot day and suddenly i lost power to both my navigation screen and shifter. I was unable to shift gears none of the lights are on that normally are on the shifter... if i turn the car on and off i gain power back to both items for about 10 secs before they turn off again plz help.