I don't think you can use NFC tags while your screen is locked. I think there would be a huge security issue if malicious people could control your phone with NFC tags, even though your phone is locked.
***Edit: Just wanted to add that there are certain custom APKs that allow you to use NFC...