It's hard to explain where the difference is. As Dirk already said, the translation of "there was" is "es gab". From the grammatical perspective, I cannot explain where the difference is, but I can give you some examples:
- Es gab einen Unfall
- Es gab Essen
- Es war morgens
- Es war toll
Hope that helps! ;)