This is probably our most common question. Take a look at the sticky about Japan at the top of this forum (not the one about mabotofu, the other one) and follow assorted links there.
Hint: If it's during normal business hours (the time of day is relevant), you will want to clear immigration and customs, put any bags you haven't checked through into a left luggage room, and go visit the town of Narita.