Hi there,
It might be programmed in the computer not to work.
Also check your fuse diagram in your owner's manual and see if the fuse has been pulled. It should be in the fuse box under the hood.
Out of curiosity, did your truck come with a bulb in that space in the headlamp and does it have the little round glass sensor in the middle of the top of the dashboard?