Iphone 4 is dead no charging no apple logo?

I wait for a month or so connect iphone to charger sadenly red battery icon appiered ant start to charge and boot worked fine a day and dead again i wait another month and worked again and dead what is the problem

Try doing a soft reset.

If you had AppleCare and are under warranty, call 800-275-2273 for AppleCare tech support.