Minor issues like loose boards or squeaks can be repaired on foundations. But replacement is better for severe structural damage or broken coils in box springs. Most last 5-10 years.