You have to start questioning, and be mindfully aware of your thoughts. When you do that, you realise that you are an observer of your thoughts, not the originator.