There are times, especially when writing fiction, that fragments help create the mood. You can use them if you are using them on purpose. If you worry that you use them unintentionally, the you simply need to make sure that every sentence has a subject and a verb (and if the verb is transitive, that you also have an object.).