A virus can copy itself and needs some sort of contact to spread.
Trojan horse is a web site or email that seems legitimate but allows access to someone else.
Spyware can secretly obtain personal information.
How Can You Avoid?
To avoid malware, you can use an antivirus software, a fire wall, and common sense.