We need LOTS more information in order to help you:
What truck do you have?
Does anything else lose power when this happens?
Does the radio quit?
Do the gauges go off?
Does it happen when you tilt it UP or DOWN?
Do you have to put it back where it was, UP or DOWN, to restart the engine?
Does it happen every time or just on occasion?