Default Network unlock unsuccessful with code

I purchased a network unlock code from a site ive used many times. I put in a different sim in and it prompted for a code. I entered the code it said it was unsuccessful so i tried it again with same outcome. I read about having to use *#7465625# to unlock it so i tried that with no results. I figured if i flashed back to stock maybe those codes would work but that didnt make a difference. Now it no longer prompts me to enter an unlock code but will not register on the network. Ive read that it may be frozen but im not sure how to enter the unfreeze code. Can anyone help me please?