Here's why:
* Past Tense: The sentence describes a past event (she asked you). Since the question "What is your name?" was also asked in the past, the verb "was" is needed to match the tense.
* "Is" would be incorrect because it suggests the question was asked in the present, which is not the case.