In general, executive function improves over time. However, many health problems can affect executive function, including dementia, strokes, and certain heart and lung diseases.