Answer: B
The compound shown is imidazole. The N-H nitrogen lone pair is part of the aromatic sextet, whereas the other nitrogen has its lone pair in the ring plane and is protonated. The imidazolium ion has the charge shared equally by two nitrogens (amidinium type), so imidazole (conjugate acid pKa about 7) is more basic than pyridine (about 5).