Have you tried restarting your phone? If you did but camera still won't work, do a hard reset (don't forget to back up your files and contacts).
If camera still doesn't work, you need to get your phone repaired. Contact the store you got it from or contact Samsung directly to find out where you can send or bring your phone for repair.