Energy Shield Base Types
Energy Shield is primarily gained from gear: Helmets, Body Armours, Gloves, Boots and Foci. The majority of the Intelligence-aligned base types have inherent Energy Shield present as the Defence stat that's tied to the item. This portion of Energy Shield can be scaled by local modifiers, for example 'X% increased Energy Shield' or '+X to maximum Energy Shield'. These local modifiers scale the Energy Shield gained from the piece of gear directly and do not apply globally to your character. The Quality stat is a multiplier on the final amount of Energy Shield on a piece of gear.
Local vs Global Modifiers
A local modifier is one that only applies to a stat on the item it's present on, whilst a global modifier will apply to the total stat on the character. Local modifiers are found on items with inherent stats, for example Gloves with inherent Armour will be able to roll local modifiers that improve the inherent Armour on the item. However on items where there is no inherent stat such as Jewels, or on items that can roll modifiers that do not apply to the inherent stat, such modifiers are typically global modifiers.
For example the Amulet below has a modifier that grants '38% Increased Energy Shield' which is applied globally to the character's flat Energy Shield, as it cannot apply locally to any stat on the item.

The Helmet below has'133% Increased Energy Shield', which is a local modifier that's not applied globally to the stat on your character. Instead it scales the inherent Energy Shield on the item, making it grant a higher amount of flat Energy Shield.

Scaling Energy Shield
Flat Energy Shield gained from equipment or other sources is added together and scaled by any global Energy Shield modifiers you have, such as 'X% increased maximum Energy Shield' from the passive skill tree.
Note: modifiers to Global Defences will also scale Energy Shield.
Other Item Slots
Energy Shield can also be obtained from other gear slots such as Rings, Amulets and Belts, from rollable Prefix modifiers. There are also some Unique items that grant special modifiers, such as
Atziri's Disdain which provides '25-30% of Maximum Life as Extra Maximum Energy Shield', but also makes a portion of Damage directly bypass Energy Shield to deal Damage to Life.