Another way to say "a hinge allows a door to open and close." is "Doors can open and close because they have hinges."