iphone problems help!??!

So my phone 6s was charging perfectly fine earlier today and then when i got home i went to charge it and it worked just fine as usual. i unplugged and it and used it until it hit 5% but then when i moved my phone upstairs to charge it while i watched a movie it was plugged in the whole time and said it was charging in the corner but for the whole movie it never left 5% and cant seem to get it to charge right??? anyone have any similar problem?? 
btw i am using an apple certified cable that came with my phone so i dont think thats the problem and i tried putting it rice for a bit because it was raining today but it didnt help