If you lost all power. Look at your battery cable connections on the battery. The cable conection on the starter and the chasis ground. If you slowly lost power then the truck quit running and would not re-start it is most likely the altenator failing.
Search GMC Sierra 1500 Questions
GMC Sierra 1500 Experts