This is the other thing that, in my experience, many writers have trouble with, even the pros at times. The following rules may be broken within speech, but not in narrative, until you have sold at least 500,000 copies of a book. Then you can tell me when exceptions may be made.
1. A sentence contains one verb. No less. If it's less, add one. If more, see rules three and four. So these are wrong:
2. Participles, such as "eating", "lying", "writhing", are not, by themselves, verbs!Up on the ridge. (No verb, so not a sentence. Allowed only in speech.)
She went to the liquor store and bought some Frangelico and drove home and drank herself into a stupor and woke up hung over. (Too many verbs.)
Lying beside her on the bed. (Not a sentence because "lying" isn't a verb)
The robot lying beside her on the bed. (Still the same problem)
The robot was lying beside her on the bed. (Better)
3. Commas do not join sentences. Join two closely-related sentences with a semicolon.
Commas do not join sentences, join two closely-related sentences with a semicolon. (Wrong)
Commas do not join sentences; join two closely-related sentences with a semicolon. (Better)
Exceptions (very short sentences, etc) only as in Strunk and White: http://www.bartleby.com/141/strunk.html
4. Conjunctions (and, but, or) may join related sentences, but don't get carried away. There had better be a close relationship and that relationship should be shown by the conjunction.
"It was a sunny day and she screamed." is not a good use of a conjunction.
My sub really hates this particular whip, I like it. (wrong)
My sub really hates this particular whip and I like it. (poor)
My sub really hates this particular whip; I like it. (correct but ambiguous)
My sub really hates this particular whip but I like it. (good - relationship explained)
My sub really hates this particular whip; that's why I like it. (excellent)
5. Memorize Strunk chapter II (it's very short!) and then re-read the above.
Strunk chapter II again: http://www.bartleby.com/141/strunk.html
Some of Strunk's rules from 1918, like the use of serial commas, are becoming more flexible lately. Still you will do much better knowing these than not knowing them. They are the anchor; without them you are adrift. Know them and build.