Well first thing you need to do is remove the headliner if possible. This will make the job a whole lot easier. If the foam is bad go and by some new foam and cut it to size. The pick up a can of interior spray adhesive. Then glue the foam followed by the cloth.