Refers to one's whole mental and physical energy, often in the context of pouring it into a task. Common in the phrase 精魂を込める (to put one's heart and soul into something).
He put his heart and soul into that work.
They fought until their spirit was completely exhausted.