What causes a 1998 suburban to turn off while driving happening intermittently usually after 20 minutes of driving?

When it dies, is it a sudden stall, or does it run rough, and then die? If its sudden, it is most likely a electrical problem, but if it runs rough, or dies when accelerating, it might be mechanical. Such as the fuel lines, carb, etc.