The Aztecs lacked horses and attack dogs. The Spanish by contrast had perfected combat with both. Both proved decisive over and over again. You're correct in asserting that guns weren't decisive - although initially he noise and visual display of firearms were a significant factor in confusing and frightening the Aztecs (especially the common people and subjugated indigenous groups).