There should be a long bold with a very large plastic head that you screw through the centre of the wheel into the spare wheel well to hold it firmly.
Depending upon which model, the spare wheel well may only be designed for a space saver wheel and you may have a full size wheel hence the carpet being pushed up.