All perfect praise be to Allaah, The Lord of the Worlds. I testify that there is none worthy of worship except Allaah, and that Muhammad is His slave and Messenger. We ask Allaah to exalt his mention as well as that of his family and all his companions.
Jinns are one creation among the creations of Allaah. Allaah, the Most-High has created them for a wisdom. They are created from the fire. Allaah says (interpretation of meaning): {And the Jinn: He created from a smokeless flame of fire.}[55:15]. Among them some are righteous and some are corrupt, some are Muslims and others are disbelievers. Allaah says (interpretation of meaning): {And among us are the righteous, and among us are [others] not so; we were [of] divided ways.}[72:11]. Allaah further says (interpretation of meaning): {And among us are Muslims [in submission to Allah], and among us are the unjust.}[72:14]. They have different shapes but humans cannot see their proper features or shapes (they can appear to humans as humans or animals…) but not in their original form. However, we are not specialised in knowing the circumstances or tribes of the Jinn. It is one of the wisdoms of Allaah, about which we only know little in terms of the Jinn attacking humans. This could be as a punishment for them or a trial by which Allaah raises their degrees and wipes out their sins and so on. Anyway there is nothing that Allaah creates except that there is wisdom behind it.
Allaah knows best.