You are assuming that electricity is a source of energy, but it is actually just an energy carrier. It must be generated by heat (from fossil fuels, nuclear, solar, geothermal) or by gravity and/or solar-driven motion (hydro, wind). But it ALL requires an initial investment of dense (fossil) energy to build out an infrastructure for generation and transmission! You cannot build solar panels with solar energy alone, nor wind mills with wind energy!