WARNING: This page is about a different car, the 2003 Nissan Pathfinder. However, it is still accessible from the selected car via links, so may be relevant.
Check continuity between each terminal.
Fig 1: 4WD Shift Switch Continuity Specifications
Courtesy of NISSAN MOTOR CO., U.S.A.
Fig 2: Checking Continuity Between 4WD Shift Switch Terminal