the back camera is ok but when you change it to the front camera, it wont work.
Have you tried removing the battery for a while? Some users made their cameras working again by simply doing that.