What are the two factions of Islam?

There are more than two factions! Just as there is a multiplicity of different sects and denominations in Christianity, Islam is practiced differently in different countries and by different groups. Although I think the answer you are looking for is Shi'a and Sunni.