How did air get into the fuel tank ?
What do you mean? Empty aircraft fuel tanks are not vacuums. They all contain air, among other things.