Explanation:
In the given question, the two metal spheres were hanged with the nylon thread.
When these two spheres were brought close together, they attracted each other. The attraction between these spheres is the result of the opposite charges between them.
The possible ways by which these two metal spheres can be charged are by induction that is touching the metal or by rubbing them.
During induction, the same charges are transferred to each sphere. In this case, either both the spheres will be negatively charged or positively charged.
It is not possible that after the sphere touch each other they will cling together because the same charge repels each other and during touching, if one sphere is neutral, then the charged one will transfer the same charge. And as we know that same charge repel each other therefore they will repel each other.