Yes, if you are talking to yourself, you aren’t crazy, but you’re a genius person! Science has proved that is a smart way to clear your thoughts.
When you are angry or having a silly idea that you can’t share it with anyone except yourself. You should talk with yourself about those things, if you are angry it releases your anger or you can come up with better ideas. Your sensory mechanism gets activated when you speak to yourself. You can be also more focused on the things that you want, while you think about them or saying them aloud.