They “governed” in the gaza strip, yes, but when was the last election exactly? In 2006 they got in power, then they murdered their political opponents and have kept their power through force ever since
Saying that they’re elected by and represent the people would be a bit of a stretch