You need to restore your inner energy through rest and introspection.
At a basic level, motivation is the impulse to act. Neurologically, there is building evidence that motivation may be connected to dopamine levels in the brain, while psychologists tend to correlate motivation with such concepts as autonomy, value, and competence. To regain your motivation, you need both to take care of yourself physically and to find value in what you do.