Both agile and scrum are iterative in nature; it may take several attempts to get it right, but each one gets you closer to finding the solution (or should at least).
Agile and scrum are also similar in that they both take incremental steps in order to complete the project.