Yes, the sentence is grammatically correct and sounds natural. However, to make it slightly more conversational, you could also say:
"I couldn't call you because I haven't memorized your phone number."
"I couldn't call you because I don’t have your phone number saved in my memory."
The original is perfectly fine as it is!