Hi Sinem,
Something is on your mind if you are thinking of something repeatedly consciously or subconsciously.
Example: Although she has left me, she will always be on my mind.
Something puzzles you if you are not able to comprehend it, or if it does not conform to logic.
Example: His erratic behaviour really puzzles me.
Hope this helps.
Cheers, Lance