We are happy to answer specific questions, but we are not replacements for textbooks or Web searches.
Enter this exactly in Google: grammar "direct and indirect speech"
You will get many hits.
After you read some of the explanations there (or view some of the videos), if you still have questions, come back and ask our your specific questions.
In the meantime, please remember that the personal pronoun "I" is always capitalized.
Student or Learner