A cheap trick for checking if you have spark is to pull out "A" spark plug reconnect the wire hold it near a grounded part on your truck about 1/8" away and have someone turn the engine over. Make certain that you are wearing electrical insulated gloves or you will get a shock that you really don't want. If it sparks then you have juice and that means it isn't electrical. Another cause could be the time chain. This could cause no spark. For the battery issue it could be just a dead battery have it checked (freebie) at Napa, Shucks, AutoZone or it could be a bad altenator, or an electrical short that is draining your battery.