Complex sentence: Loja is credited to have been the first city in Ecuador to have had electricity which was supplied to the city by the introduction of a Hydroelectricity dam completed in 1896.
Split into simpler sentences: Loja is credited with being the first city in Ecuador to have had electricity. Electric power was supplied to the city by the introduction of a Hydroelectric dam completed in 1896.