1. He lied me that you were a fine gardener.

2. He lied that you were a fine gardener.

3. He lied to me that you were a fine gardener.

4. He lied.

5. He lied you were a fine gardener.

(Are they all grammatical? Which ones are wrong grammatically?)

3 and 4 are grammatically correct; 1 and 2 are not.

5 needs a semicolon.

He lied; you were a fine gardener.