I am wondering because it seems like there could have been but we just don't know much about them because all evidence could have been destroyed in a war. Are there any theories base on this? Sorry if it is a stupid question.
Similar to modern society, where everything is powered and we calculate everything? No. That's the short answer. Prior to the 1700s or so, people basically did not have the ability to manipulate electricity to accomplish a task, the way we do today where everything is wired. Or even a hundred years ago. No ancient lightbulbs or wiring has been recovered from the ruins of ancient buildings.
There is the interesting occurrence of the "Baghdad Battery", a series of clay jars which had contained acid and appear to have been capable of generating and storing a small amount of electricity. Their use is not well understood, but the low amount of possible electricity obtained from them could have been used for electroplating, or to inspire a religious feeling (according to Mythbusters). But again, this is merely making use of a phenomenon, is isolated, and is not channeled to accomplish a scientific definition of "work".
However, that doesn't mean we don't find technology that amazes us occasionally.
The Antikythera Mechanism was recovered from an ancient Greek shipwreck, and was such an incredible feat of engineering that modern scientists are still not quite sure they know how it worked. It appears to have been a complicated clockwork calculator for calculating the positions of stars and other celestial bodies.
As for advanced mathematics, most of that was developed by the Greek philosophers and mathematicians, including Pythagoras, who developed theorems that we still use in math class today.
I assume you are inquiring about the possibility of an ancient super-civilization that predated most of the known ones that was somehow wiped out in a natural disaster. There is absolutely no evidence of this. Archaeologists can tell when a civilization is destroyed by war or some other disaster. It has happened over and over throughout history. I recently worked on an excavation that recovered the ruins of Nebuchadnezzar's destruction of southern Palestine around 600 BC. Destroyed cities are extremely common, and we actually like them because the ruins sort of preserve things the way they were that day, you don't have daily life and people cleaning up and removing the old broken things.
If you have other follow-up questions, I would be happy to answer them.