Hi Guys I have a VR SS and every once in a while(everyday almost) it decides to turn off while I am driving

I was wondering if any of you guys out there would know of this problem. The engine lights also comes on now and again but I was told it could be some sensor with a name that I have forgotten that is on the right side of the engine bay next to a little silver box. If anyone has any clue what I am talking about please help me correct this problem please.
