Pyridines with leaving groups in position 3 do not give nucleophilic substitutions, but can undergo elimination in the presence of strong bases, leading to an intermediate called pyridine (equivalent to benzyne), which is attacked by the nucleophile in the middle.
Mechanism:
Stage 1. Formation of pyridine
Stage 2. Nucleophilic attack
Stage 3 . Protonation.