Why is Electric field flux through a closed surface in Gauss's law not zero? I learned that the vector flux through any closed surface is always 0.
So if you have a sphere(closed surface) and you put it in an uniform electric field, then the total flux is 0. 
However, the Gauss's law states that the electric field flux through a closed surface equals the enclosed charge divided by the permitivity of free space. Shouldn't it be 0? What am I misunderstanding here?
Any explanation will be appreciated. 
 A: A closed surface like a sphere encloses some volume. Anything coming out through the surface (the net outward flow which we call the flux) will be in the expense of what remains inside. If the sphere encloses some charge, then electric field diverging out from the volume containing the charge will be equal to the normal component of the electric field lines through the surface, which we call the electric flux.  
The vector flux will be zero if the boundary and the surface are parallel. The electric filed is a special type of a vector which has a non-zero divergence if there is some non-zero charge. The electric flux will be zero only if there is no charge enclosing that surface.
However if you place an uncharged sphere in a uniform electric filed, the sphere develops induced charges. But there the charge is not residing inside the sphere but on the sphere. i.e, the charge induced is not enclosed by the sphere. So in that case the charge inside the sphere remains zero and you will get zero divergence and zero flux. 
The Gauss's law states that the total electric flux coming out from a volume of charges is equal to the charge enclosed divided by the permittivity of the medium inside the surface.
A: Not all vector fields have zero flux over any closed surface.
Those having zero flux everywhere are a special type called the 'solenoidal'. The electrostatic field doesn't belong to this group.
I think you need to study some vector analysis to capture the concepts correctly. 
A: the electric flux linked wiith any closed surface of 0 charge is zero while the electri flux of a closed surface having some net charge is not zero
say for example  2 hollow spheres one having a net charg n other having no charge ,the first will follow the gauss law while the other will follow the zero rule
when the hollow sphere is kept in uniform electric field the field lines entering the hollow shere is equal to the field lines emerging out ,so it has a 0 net electric flux
whereas a hollow sphere having a +ve charge will emit field lines,thus the elec5ric flux is not 0
