You made a mistake. You just messed up.
When we realize that we made a mistake we can learn from it. Failure is making a mistake so big (or making so many little mistakes) that we can't recover.
Mistakes happen often, actual failure is rare.
Make your mistakes and move on, but don't confuse your mistakes for failure.