If you meant "Is one of them is for a surface of a solid and the other is for a curve?", yes, the first specifically says "surface" and the second, while you have only given the form, has "ds" rather than "dS" and so is a path integral.
Also, the first is for flux across (through) the surface in 3 dimensions while the second is for flux across the closed path, in 2 dimensions, and so the flow in and out of the region bounded by that closed path.