It's difficult to determine which of those factors has the biggest impact, but, in general, GDP growth and productivity growth are the two elements that have the greatest impact on a government's fiscal health—or lack thereof.
Nominal GDP is the tax base. That's what defines it best. Therefore, a rising nominal GDP is generally the best indicator of a government's ability to fund services.