In Hebrew "soul" has a different meaning than in the Western world
A person is composed of a unity of different parts, the mind, thought, emotion, personality, body, blood, organs, etc. This word is often translated as “soul,” implying an abstract entity contained within a person. But, the Hebrew meaning of this word is “the whole of the person” and can be understood as a “being,” “person” or “entity.” This word can be used for man (as seen in Genesis 2:7) and animals (as seen in Genesis 1:21 where it usually translated as “creature”). The root of this word, naphash means “to refresh” in restoring the whole of the person to its wholeness through rest and nutrition.
The part of us that comes from and goes back to God, the part that is encoded with the knowledge of God is the Spirit. The Hebrew word ??? said ru'ahh, means wind. It is from the root word "rach" which means "advised" or "recommended path". "Wind that follows a certain path". Spirit within a man describes his character. So he either follows the advised path or he doesn't. Elohim put into a man, the character or nature to follow the path given to him. It is the shadow of God.
The word for Holy Spirit is ru'ach.
EDIT: It won't let me put the Hebrew words here, and replaces them with ????
When the bible says the soul will die, it means the peraon. The physical body will no longer think or anything.
But our spirit has many things (you, your thoughts, personality, attitudes, knowledge etc) written on it. This part of you lives on and does not die. It returns to God when it is ready.