Memory is one aspect of intelligence, but hardly the only one. Making new connections, logical deduction, spatial intelligence and creativity are also aspects.

I have fairly poor memory, but I can solve problems that people with better memory can't.