If You want to ENCRYPT message:
In PKI You use Your private key to decrypt received message.
You also share Your public key and well... publicize it to allow other people to create messages which only You can read -message encrypted with You public key, can be decrypted only with Your private key (only You posses this key).
If You want to digitally SIGN message:
You use private key to sign a message - everybody can read it (using Your public key), but it is ensured that only message was sent by You.
More info
here.
[ July 20, 2007: Message edited by: Piotr Uryga ]
SCJP 1.4, SCWCD 1.4, SCBCD 5, SCEA