If you will communicate with a PC you must use a RS232 level translator. A very common chip for this is a MAX232 type chip. Just Google max232. Also have attention to details. Like if the transmission rate you use is compatible with your CPU clock frequency.
Also Google is your friend. If you Google the phrase 8051 rs232 you will find tons of examples