In electric flux taken in sphere the electric field and area are taken in same direction when a q positive charge is taken at centre the angle between electric field and the area is 0 then dot product of their will zero or not
I think you meant to say “parallel.” Electric flux through a surface is at *maximum* when the electric field is perpendicular to the surface. The whole point of flux is to measure the “total number of field lines” punching through a surface. If the electric field is lying *along* the surface, it isn’t going in or going out and the flux is zero.
The formula is Phi = E•A = E A cos theta, where theta is the angle between the area vector A and the electric field vector. It measures the electric field component pushing *through* the surface (E cos theta) multiplied by the area (so for the same field, a bigger surface has more flux through it—in fact, electric field used to be called “flux density.”)