The pasture was surrounded by an 'electric fence'. [=a fence that has an electrical current passing through it]
There's a problem with the building's 'electrical' wiring.
an 'electric' motor/heater/blanket/razor/appliance