How to test if an IR sensor is broken?
The most low level test of this sensor is to power up the device and check if the data pin goes high (means +5V). You did not give us a certain part number, however comparable devices have an active low output. Thus the Data pin should be high without IR data.