IPhone problems what should I do?

One of my friends got the iOS 7 from pirate bay, and now my phone won't work something with activation error. Any ideas on what to do I can't restore or anything.

There's no way of knowing just what you installed or what it is doing (Hint: Never install an operating system from anywhere other than the official source).

If you follow the steps here for Restoring (use Recovery Mode if necessary)…

http://support.apple.com/.../kb/HT1414

and it still does not work you will need to take it into an Apple Store to see if they can do anything with it.