Question: why was the sword of gryffindor missing?
Answer: The sword is a powerful magic object in it's own right (as is the Sorting Hat), so when a true Gryffindor was displaying great bravery and had great need of it, the sword chose to leave Griphook and present itself to Neville. Griphook stole the sword and never really had ownership of it.