Using I2C on ATMEGA328P-PU not working

Clearly you have been able to upload sketches so it is probably not serious a timing issue. Are you using an external 16Mhz crystal with 2 x 22pf capacitors ?