In a way that is not known or specified. Somehow, she managed to finish the project on time.
For a reason that is not clear or understood. Somehow, he always ends up in trouble.
In a way that is difficult to explain or understand. The cat somehow found its way back home after being lost for days.