the truck has set for a long time, the aem itself is known to work when it wants to, it could be a number of things, when its intermittent start with the simple stuff, work you way up from there, you need to eliminate the minor things firts, from there you proceed, dont jump into buying parts right off, it can get costly
you need to take it somewhere let them look at it, have them diagnose the problem , only problem is with what you have not many are going to be willing, try doug levin to start, heffner probably wont touch it, levin is th eonly person in your area that probably will,