The term soul is translated somewhat confusingly, sometimes interchangeable with spirit and other times with mind.
There are too numerous verses and passages to discuss at length here, but the general concept taught is that a person has a physical body, what philosophers call a rational mind( sometimes translated as soul ), and a piece which is in regard to this world immaterial (spirit also sometimes translated as soul).
God is the generative force for all three (John 1:3 and Acts 17:28). To reject God, the generator, is by definition to degenerate. Therefore, in a sinful world all three can experience some kind of decay.
God can restore all three.
2 Corinthians 4:16 [Full Chapter] Therefore, we are not discouraged;
rather, although our outer self is wasting away, our inner self is
being renewed day by day.
Matthew 10:28, "Do not be afraid of those who kill the body but cannot kill the soul.'
Daniel 4-Nebuchadnezzar’s Madness. His rational mind is lost and restored.
Titus 1:15:"In fact, both their minds and consciences are corrupted."
1 Thessalonians 5:23
May God himself, the God of peace, sanctify you through and through. May your whole spirit, soul and body be kept blameless at the coming of our Lord Jesus Christ.
Revelation 3:1, Revelation 2:11 As physical death is the penultimate
form of physical decay, so also there is mentioned a spiritual
God provides salvation from this decay/death John 3, Ephesians 2
The architecture and relationship of these 3 things is an incredibly detailed discussion and there is a variance of interpretations. However your typical Protestant and Catholic will believe that all 3 have a definitive beginning caused by God (though they might not all three be created at the same time) and that the spirit then exists forever (though some might hold like the Jehovah's Witness that wicked spirits cease to exist rather than spend an eternity in hell).