What do you want to use the parts for? In a lot of applications, almost any small signal transistor can be used. It's quite likely that you could substitute the 2N3904 with something else e.g. BC547 or 2N2222.
How you wire the potentiometer depends on what you want to use it for. I would guess that the two connections next to each other are the ends of the track, and the connection on the other side is the wiper. "102" sounds to me like 1K. Don't you have a multimeter to check it?