The foam surround is a wear item, like a belt or a lamp. It rots on a schedule, and when it goes the driver starts to rub, which is the part that turns a cheap repair into an expensive one.
Diagnose before buying anything. Push the cone gently and evenly inward with two fingers. A clean driver moves without noise and returns. A driver with a dried surround crumbles at the edge, and a driver with a sagging spider or a cooked coil sounds gritty or scratches.
Refoam when the cone, coil, and spider are healthy and only the surround failed. A kit costs twenty to forty dollars, takes an afternoon, and keeps the original driver, which matters when the driver is matched to the cabinet and to the other channel.
Replace when the coil is rubbing, the cone is torn, the frame is bent, or the surround is a nonstandard shape with no kit. Then the honest problem is matching the replacement, because a driver is not just a diameter and an impedance.
Run a low sine sweep, 40 to 80 Hz, at low volume after the refoam sets. Any rattle tells you the centering is wrong before you reinstall the driver.
What model are the speakers, and did yours rot at the surround or somewhere worse?