iphone 6 plus glitches at the top of the screen and touchscreen freezes

how do I fix the glitches at the top of the screen and the frozen touchscreen on an iphone 6 plus?