Have you try to soft reset the phone? Push and hold Volume down + Power for 10 seconds, then it will vibrate.
Also you can download the Nokia camera app and check if the camera works... if that app still can't make the camera work, then i recommend to take the phone to the nearest Nokia care center or make valid the seller guarantee.