Local communities or one-family residences will as a rule have their own supply of energy, covering their typical needs.
Rooftop solar panels or solar panel farms for a community are most common. Windmills are used in areas where that is suitable.
Energy is stored up, either in normal batteries, or more likely as dissociated chemicals that can be stored indefinitely and recombined to release the energy. For example, water can be split into oxygen and hydrogen and recombined into water to release the energy. Or ammonium gas is split into nitrogen and hydrogen and recombined to produce heat and thereby electricity if necessary.
There is no scarcity of energy when re-generative sources are used and the storage and utilization methods are clean or happening in closed circuits.
One way electricity distribution grids are in HoloWorld replaced with two-way grids. That is, any point can either take or give electricity. The main use of the grid is to export electricity when one has a surplus, or to draw electricity when one is low.
Most vehicles run either on electricity or on re-combinable gasses produced by solar energy and stored in tanks.
In geographical areas where large amounts of energy are naturally available, that can be exploited in ecologically harmonious ways, large power plants can be constructed. That might be based on tidal forces, dammed up rivers, or large solar or wind plants in areas with particularly abundant sun and wind. The energy arrived from these massive plants would be used either for large scale construction projects, or to supply areas that do not yet have the wherewithal to have widely distributed local energy production.
Statistics show clearly that as consumption of electricity goes up in a region, a number of problems go away at the same time. For example, population increase is roughly inversely proportional to the amount of electricity consumed. Health statistics and mortality rate follow a similar pattern. If people get easy access to electricity their living standard tends to go up, and live becomes less of a struggle to survive.
This is essential for poor, underdeveloped, overpopulated, starved regions of the world. An electricity infrastructure is one of the most valuable actions that can be taken to bring such regions into a higher quality of living.