Well, when you ask that question, you have to factor in things other than race and religion.
Let's start in Africa: Being colonized (or rather, conquered) by Portugal or England was pretty rough. The locals were usually treated as subhumans and the country's resources were leeched by the colonizing country. Frequently, there was a lot of corruption in the governments. After that, it would be difficult to have a fair and "successful" government. How would they know how to make a good one work when they had only ever seen a bad one? I would assume that there were also a lot of bad feelings when the colonizing country moved out, because the people who were put in power when they left probably wanted to make up for the years of colonization before doing anything else, like setting up a solid infrastructure. There are a lot of factors that go into the relative "success" of a government, a LOT more than just race and religion.
In the Middle East: This region has been a hotbed of conflict for almost all of known history. There were various countries and empires fighting for territory, and more recently, Israel has caused a lot of problems. See, the Jews have been shunted around that area for ages, going from one country to another, never being able to put down roots. and every country just wanted to get rid of them. You see the problem. So after WWI, the League of Nations (which was more or less an early version of the UN) had plans to split up the Ottoman empire, which was practically the whole Middle East, and had been there since the 16th century (see source 3). At least this is my understanding; I'm a little shaky on the information in that last sentence. But I'm confident in my other information. Then, in 1947, the UN decided to split Palestine into 2 halves, one for the Jews and one for the Arabs, effectively cutting Palestine's size in half, and squeezing in a new country that was just for the Jews (Israel), so they wouldn't have to wander and cause problems anymore. Now, as you might expect, Palestine didn't like this idea. Neither did a lot of the Arab countries, so many of them attacked Israel. The Israelis won, and actually expanded Israel to occupy more territory than was originally allowed. So one could say that they took more than their fair share. So basically, ever since then the Arab countries have been fighting with Israel, and the whole area has been in conflict. (see source 4). Then you have the various radical terrorist groups cropping up, and in many countries in the Middle East nowadays, the official government is not the one who is actually in charge of how things are run. It is frequently a terrorist organization or other unofficial group with more power and influence (and/or fear) among the people than the government has.
In South Africa, I don't know that I would say the government is "successful," but I would say it's reasonably stable, even if it does have some problems. It's still a lot better than the Middle East. Also, I know people from Zimbabwe and Niger, and neither one of them lives in a hut or refugee camp in the middle of the African desert. They don't walk around in batik print dresses with head scarves tied on. They are perfectly normal. Africa has cities and civilization, the same as most places. It just isn't always portrayed by the media.
As far as the idea that black people all follow the Koran, in South Africa, "according to the latest 2001 national census, Christians accounted for 79.7% of the population. This includes Zion Christian 11.1%, Pentecostal (Charismatic) 8.2%, Roman Catholic 7.1%, Methodist 6.8%, Dutch Reformed 6.7%, Anglican 3.8%, and other Christian 36%. Islam accounted for 1.5% of the population, Hinduism about 1.3%, and Judaism 0.2%. 15.1% had no religious affiliation, 2.3% were other and 1.4% were unspecified." This quote is from Wikipedia, which cited the sources for this information as 1 and 2 in my sources below. When I checked up on 2, I found this quote as well: "Approximately 15 percent of the population claims no affiliation with any formal religious organization. It is believed that many of these persons adhere to traditional indigenous religions."
So here are only a few causes of all the suffering in Africa and the Middle East. There are a lot of things that influence the situation though, so if you're really interested, I suggest you do some of your own research.
So now that I have replied to you fairly and reasonably, I'd like to ask you something. Do you realize how racist your comments are? What you appear to say is that because the people in Africa and the Middle East follow the Koran, they suffer and cannot have a successful government, blaming their problems on their religion. Then you tie Barack Obama to them through race. If you are blaming their troubles on religion (which I personally disagree with), then what does race have to do with it? The Middle Easterners and Africans are different races.
And I object to calling Obama "a Kenyan." I'm not being hostile here, I'm just telling you what I think, so if my tone implies otherwise, please assume that I didn't mean it to come across that way. Obama is an American. He was born and raised in America, as you probably know (that IS a requirement to be President). His father was Kenyan, but he didn't have much contact with his father (who was raised Moslem, but by the time Barack's parents met, he was a confirmed atheist). His father left when Barack was two, to return to Kenya, and only saw his son once more before dying in a car crash in 1982. Obama did go to Kenya, but he never lived there for any period of time, just visited (in 1988). (see source 5)
On a final note, I think that your comments have a decidedly racist tinge and show that you don't have a very good understanding of social, political, and religious influences in Africa and the Middle East. I'm not insulting you. There's nothing wrong with not knowing about these places. That's why we ask questions. I learned a lot by responding to your question, so I'm glad you asked it.
I hope that this is a good response to your question, and I'm sorry that it's so long. But the question is really complex. If anyone else has more/better information, please let me know!
-^__^-