Loosely speaking, the soul is the principle of life in a body and the spirit refers more to the immaterial aspects of the soul, which are the ability to reason and the ability to make decisions based on reason.
Source: What Is the Difference Between “Soul” and “Spirit”? | Mind Matters