Three years of war in Darfur between rebel groups and a pro-government Arab militia have displaced millions of people from their homes .