The correct answer to the OP is the one already given: The set of lines through the center of a circle and the set of lines through the center of a sphere have the same cardinality, meaning that, with a little work, you can establish a one-to-one correspondence (a bijection) between them. That is, they are the same “size” of infinity. They also have the same cardinality as the real numbers \mathbb R, the plane \mathbb{R}^2, any n-dimensional space \mathbb R^n, and the surface of a sphere of any dimension (sorry @Exapno_Mapcase, there is no difference in cardinality between the surfaces of the various spheres).
That having been answered, let me confuse things by giving a way in which the sets of lines through the center of a circle and the center of a sphere have different sizes. These sets have “shapes,” or topologies. A line through the center of a circle can be identified with the two antipodal points through which it crosses the circle, so we can think of the set of such lines as the circle itself with opposite points identified, which just gives you another circle. Similarly, a line through the center of a sphere can be identified with the two antipodal points where it crosses the sphere, and the set of such lines can be thought of as the sphere with opposite points identified. That doesn’t give you another sphere, it gives what’s called a projective plane. (We know it’s not a sphere because it contains, for example, a copy of the Möbius strip.)
The circle and the projective plane are examples of manifolds, shapes that look locally like pieces of a line, a plane, 3-space, or n-dimensional space \mathbb R^n in general. The surface of a sphere is another example of a 2-dimensional manifold: If you’re standing on the surface and can see only a short distance, it looks flat to you, like a piece of a plane, you don’t see the whole thing curve over on itself.
But manifolds have well-defined dimension: A circle is 1-dimensional and the projective plane is 2-dimensional, and it turns out that you cannot define a continuous bijection between them because of that. It’s in that sense that you might want to say that the two sets have different sizes. They have the same cardinality, but not the same dimension.
Moral: When you’re comparing sizes of things, you have to be very careful to say what you mean by “size.”