From a scientific point of view, soul and afterlife is to do with the energy been used within the human body.
To better understand it, we must first know the biological fact, the human brain and nerve system run on electricity, just like any household appliance. The amount of electric energy been used in ur brain and nerve is there starting from the day u are born and remain there till u die, it would neither increase nor decrease. however, according to physic, energy can't be create or destroy, but can only transform from one form to another. Thus, the energy within our body, come from external and would remain there till we die and release back into nature, until it eventually enter another host. What human mythology refer to as soul/ghost/spirit/even gods, are these energies, it can be theorist, some ancient culture might have a higher level of scientific understanding on the topic, as we know many ancient civilization was destroy around 10000 years ago, due to the end of ice age, with it, many knowledge is also lost.
So, is there an afterlife? From a scientific point of view, definitely, but science is more in favor of the Buddhist, Pagan and Hindu concept of karma and reincarnation afterlife and doesn't exactly favor the Christian view of the afterlife.