What results from the reaction of 5-bromopentan-1-ol and NaOH?
The three reactions are:

An $\mathrm{S_N2}$:



Deprotonation followed by an intramolecular Williamson ether synthesis ($\mathrm{S_N2}$):



An $\mathrm{E2}$: