There are various way of use in Katakana, but the main purpose of Katakana is to express the word which its origin comes from foreign countries. ex) バナナ、テレビ、チョコレート、パパ、ネックレス.
Also, sometime we use Katakana to immitate sound of something. ゴクゴク ドキドキ サクサク