There is a book that describes exactly that: Ashes, Ashes by Barjavel.
It’s a classic of French science-fiction literature and I recommended everyone to read.
It was written in 1943, it describes a parisian dystopian society in 2050 where all the electricity suddenly stop overnight. Even thought the book is 80 years old it is surprisingly accurate in some aspect.