Does soil have energy?

Sure, soil has energy. Since it is warmer than absolute zero (absolute zero is equal to -273o Celsius) it has heat energy. Since it has mass, it has an energy equivalent according to Einstein's famous equation, e = mc2. It contains some chemical substances which have various forms of chemical energy.