98 ford f 150

I don’t know what to do. my truck oil light comes on and my temperature gauge goes to hot in a flash. I then loose power and I have to pull over and turn the car off and start again and it will be fine. the car is not over heating. someone please help