Welcome to Android Central! First things first -- is the glass over both lenses completely clean? Is there a plastic film over either of them?
Keep in mind that the front-facing camera is fixed-focus, not autofocus:
https://www.gsmarena.com/samsung_gal...iew-1555p8.php. So if you're not at the proper focusing distance, things will look blurry. The rear-facing camera does have autofocus, but autofocus mechanisms can fail or get damaged, which can prevent it from focusing correctly. So if that mechanism got damaged, that could result in blurry pics both front and back.