if it's a new phone that comes with a pin number then look at the instructions for the default number.
if it's a phone that is not new, and you just forgot it, then sorry, there is no way that you can access it.
do you mean sim pin, or phone pin?
like it this a pin number to unlock the keys, a pin number you need to turn the phone on, and pin number you need to access contacts and texts etc?