Loud bang, air filter box lid loose.

Hello. Now I finally have the problem with the air behind me and now something again. Since the car now runs with petrol and also with gas Quietly, I am yesterday with gas to work, all at once there was a loud bang short speed loss but otherwise everything oki (have often driven on gas but never hit it). Today I noticed that on the air filter box the holders are all broken and the lid is loose. 1. Why did the bang go into the air filter box? 2. Di e most important question, can the engine have taken damage? Greeting