You just need the carpet re-stretching over the grippers, so long as the carpet is in good condition.
One of these will do the job if it is not a foam backed carpet, or get a carpet fitter in.
If it's foam backed, the foam may have come away and turned to dust, which will mean a new...