Inspect the ductwork where it comes to the ceiling or the floor and clean around the opening with an old paintbrush if necessary. If the ductwork is away from the opening into the room, it will need to be repaired.
Climb into the attic or under the house, whichever may be the case. Locate the ductwork were the heating vent needs to be attached.
Replace or tighten whatever method is used to hold the ductwork in place. If you are in the attic, it may just be repositioning the ductwork into the opening in the room.
Cut a piece of plumber's strap with the tin cutters and secure it over the ductwork to the ceiling joists to hold it in place (if needed). This method can also be used to secure ductwork that is installed under the house. Use 1½-inch drywall screws to secure the plumber's strap to the joists.
Climb out of the attic or from under the house, return to the room and locate the screw holes on either side of the ductwork. Insert the screws through the heating vent, align them with the holes on the ductwork and tighten the screws to the ductwork with a screwdriver.