She wouldn't tell me her name.

Literal

She [topic-は] name [object-を] told did-not-for-me.

名前を教えてくれなかった — 教える ('to tell, teach') + くれない ('wouldn't do for me') expresses that she refused to share her name as a favor. The negative くれない implies the speaker wanted the information.