Have you wired it correctly? Did you forget the 0.1uf decoupling caps between power and ground right next to the chip? What are you programming it with? If you're using a TTL serial adapter, did you remember to set up the autoreset (0.1uf cap between reset of '328p and DTR of serial adapter).