My iPhone 4 keeps freezing up and isn't working, what do I do?

Ok yes I jailbroke it. And it worked fine for a while, then when it started freezing up i obviously suspected it because of the jailbreak, so I plugged it up and restore it to the original settings as a new iPhone. So it isn't jailbroken anymore. But every time i slide to unlock it, it freezes up for quite a while before opening, I can't type anything because every time i get on anything using the keyboard it freezes, I can't make calls, I can't really do anything on it. I understand that jailbreaking it wasn't smart, I'm only asking for someone to tell me if they know how I could possibly fix this. Please serious answers only, thanks

Jailbreakin it with Cydia isn't the problem. It has to deal with maybe the memory or mayb your phone it judged f, uc.ked up i don't know

If you have jailbroken your phone and want to unlock your
iphone 4 you can use the online site for unlocking. You
can unlock your iphone 4 using the remote unlock method.
Get the remote unlock services from the site
http://www.Onlinegsmunlock.com and unlock it easily.