Chosen Solution

My nikon D5100 only works in live mode and I am not sure how to repair it

it may be that the mirror has fallen out.

IF mirror has no issues, then there are two chances :

  1. Auto focus sensor has problem (Located below the mirror - bottom side of camera )
  2. Prism assembly has problem