What do you mean it won't work, we can't help you if you don't provide information.
What carrier are you trying to use it with? Some phones aren't compatible with all networks even if unlocked, they don't have the right radios. My old Note 3 and Note 4 from Verizon aren't locked, but they also are incompatible with Tmobile for example.