Most computer's come with an anti-virus program already installed, you should be able to use it. But if your computer did not come with one, I would recommend that you get yourself one, either AVG or Avast are some good free ones.
As for firewalls, if you are running Windows XP Service Pack two, there is already one in there. But if you want another one or don't have SP2 you can download Zonealarm.
For spyware, malware and adware you can get either Ad-aware SE Personal or Spybot Search and Destroy.
They can steal your internet passwords, files on your computer, credit card number etc.
The biggest difference is that a trojan is a program that covertly (secretly) enters your computer, send something on or downloads something without your knowledge.
Spyware are programs that basically spies on you. It finds your passwords, sites you have visited etc.
You are right in the fact that you don't want them.
These things come from websites that have a hidden line of code that makes the virus/trojan/spyware (hosted somewhere else most often) download to your computer and begin to do what they do (described above).
One of the best anti-spyware programs (programs that removes spyware or block the download) for beginners is Windows Defender. The program is made by Microsoft and can be found here:
www.microsoft.com
Check below the picture to the left and you will find "Windows Defender" Beta 2. Click on it, and further installation information will be displayed.
Let me know if there is anything else you want to know :)