iphone charging screen keeps blinking and won't turn on
So my iPhone 5c battery died and when I went to plug it into the charger it wouldn't charge and the the screen (the red battery screen) just blinks (turns on then off) when I unplug it the phone just stays off. Also when I shake my phone to my ear I can hear something inside shaking or rattling the noisy isn't that loud but I don't know whats happening this is the first time this has happened and also I've been using the same charger the phone came with so i haven't used and 3rd party chargers. Please help I've only had this phone for 1 year..
iPhone 5c, iOS 8.4