First make sure your gamepad is listed in Device Manager.

Click Start > type in 'Final Fantasy XI Config' and press enter > Click the 'Gamepad Settings' button

Make sure your gamepad is enabled by clicking the check box in the top right. Make sure you have mapped your controller buttons.