Has the phone been dropped at all? It could be a loose cable. Is the front camera still working? I believe they're on the same cable.
If not, you can either attempt to replace it yourself (it's a $25 part) but it's quite fiddly, or I believe apple will just do a screen replacement for $129.