Since SHA256 has been used for such a long time, it is reasonable secure from a cryptoanalysis attack.
It is still vulnerable from a brute force attack, even though it is still reasonably secure for at least the next X Years (where X > 10).
Anyhow this question was already posed and there are several candidates eligible for succession:
http://en.wikipedia.org/wiki/SHA-3
MD5 fell out of use because the computational capacity rose over the years, thus making cryptoanalysis easier and thus leading to the discovery of several flaws.
I would be more afraid of quantum calculators, which will make today hashing techniques useless.