Thath Singh, 22, a resident of Pandyo village in Yamunanagar district, around 100 km from Chandigarh, died on Tuesday of the electric shock received through the headphones.
Police officials said the incident took place when the victim put his phone on charging and started listening to music.
At that time, there was no electricity supply in his house. As he was listening to the music, the electricity supply was restored and he got an electric shock.
His body was handed over to the family on Wednesday after postmortem.
Get the latest election news, live updates and election schedule for Lok Sabha Elections 2019 on ndtv.com/elections. Like us on Facebook or follow us on Twitter and Instagram for updates from each of the 543 parliamentary seats for the 2019 Indian general elections.