(a) Steric hindrance in SN2
In SN2 the nucleophile must reach the α-carbon from the side opposite the bromine (back-side attack), in a single step. In 1-bromopropane the β-carbon carries only one CH3 group, so the back side is fairly open. In 1-bromo-2,2-dimethylpropane the β-carbon carries three CH3 groups. This bulky tert-butyl group sits right next to the α-carbon and blocks the path of OH−.
Being "primary" only tells us about the groups on the α-carbon; crowding on the neighbouring carbon also matters. This is why, in NCERT Exercise 6.16(iii), 1-bromo-2,2-dimethylpropane comes last among the primary bromides in SN2 reactivity.

(b) No stable carbocation, and no β-hydrogen
An SN1 reaction goes through a carbocation. Ionisation of 1-bromo-2,2-dimethylpropane would give a primary carbocation, (CH3)3C–C+H2, which is very unstable, so its slow step is extremely slow. Its isomer 2-bromo-2-methylbutane ionises to a tertiary carbocation, CH3CH2C+(CH3)2, which is stabilised by three alkyl groups, so it reacts rapidly.
SN1 rate: 3° (2-bromo-2-methylbutane)≫1° (1-bromo-2,2-dimethylpropane)
With alcoholic KOH it also fails to give an alkene. Elimination needs a hydrogen on the β-carbon, and here the β-carbon is quaternary: it carries three CH3 groups and no H. So this primary bromide is slow in SN2 and SN1 and gives no dehydrohalogenation product.