I would say the lcd/digitizer is damaged. You should try to test it on another iPhone 5 or just replace the lcd/digitizer.
open