If you are describing what I think you are describing, I get the same thing when I smell a very specific smell from my childhood. It has happened a few times walking past a house and the smell brings this kind of nostalgic zap in my head.