Several factors influence lung function, including age, gender, smoking status, environmental exposures, and genetic predispositions. For instance, lung function generally declines with age, and smoking is a significant risk factor for reduced lung function.