You'll need a model and an Android version in order to root the phone, to see at least if it's possible. Since you didn't provide one, I recommend checking the XDA Forums. It's a vast place with flashers all over the world where you can see how to properly flash custom ROMs, root phones, etc.
Use the Search function on the page to locate the required instructions: http://forum.xda-developers.com/