Where do the waves in the ocean go, Ravi?
Wait, that is not as much a goofy philosophically question as it appears at first blush.
String theory suggests that everything is really a wave (a structure of energy) passing through the content of space/time.
Now, you probably know that you are not the same collection of atoms you were seven years ago, right?
You know that you body (your wave if you will) has sluffed off old atoms and replaced them with new atoms, right?
So...where is that person you were seven years ago? You're still here, right?
You were and are that resonance (that wave, that string, that soul or call it what you will), not those specific atoms.
And, if you subscribe to the theory that energy can neither be created nor destroyed, then the wave that you are today, is indestructable.
However, it (like energy) is NOTnecessarily unmutable.
Its energy must either go into something(s) else or someplace(s), else.
So the question is what is that something/place? Is there sentience after death and will your wave recognize itself as being YOU when it has moved on?
Now that, nobody knows.
Personally I rather doubt that the ego survives death, but I am convinced (faith) that the energy force that made you what you (the whole you...not just the ego) are does move on.
So I don't know where egos go when the bodies they inhabited die.
I don't know if your ego survives intact.
I rather doubt it, actually.
Your ego is a rather small part of who you are, anyway. It is a construct of your entire mind, sort of like an operating system in a very grand computer.
Ego is NOT the sum total of the data that make you who your are, thought, not by a long shot. Your subconscious is another (and much larger and powerful) part of who you are. In fact mostly your ego is doing your subconsciousness' bidding. After you arrive at a decision, THEN your ego invents rationalizations for why you chose what you chose.
But I do think that that your life force (that wave's existence in time/space)has to go somewhere.
Either it, like an ocean wave's energy, gets distributed throughout the time/space ocean, or perhaps (and just perhaps) the wave stays intact and finds existence in an ocean of time/space being that, as yet, we can know nothing about.
That's not a very satisfying answer, is it?
Okay, let me simplify and perhaps you can find some solace in this.
Nothing gets created, not gets destroyed, but everything CHANGES.