The design of the question offers you four choices where choice 4 states nitrogen in both case 2 and 3 (formally) were $\text{sp}^2$ hybridized.
Case 3 however differs from case 1 and 2 by that the lone electron pair of nitrogen no longer is isolated (as in open chain/alkyl amines), but is in conjugation with both $\ce{C=C}$ double bonds. Because the skeleton is cyclic, of about planar geometry, and the total of participating $\pi$ electrons equals to 6, pyrrole is an electron rich Hückel aromatic system ($4n + 2$, here with $n = 1$). Thus, 3 it is the only example among the structures displayed where nitrogen is $\text{sp}^2$ hybridized.* Because the orientation of the lone orbital of nitrogen affects the chemistry (e.g., $\text{p}K_a$), I recommend an additional reading about e.g., imidazole:

(image credit to chem.libretexts.org)
* Actually, atoms do not hybridize. Hybridization is one of the mathematical concepts in chemistry, here: how to mix atomic orbitals to yield molecular orbitals of certain shape.