Got the new screen and the culprit was the flex cable on the screen itself. Changed the screen and now Touch id is working .
open