Ellen said, "Why did you use the phone without permission?".
Ellen asked why did I use the phone without permission.
Ellen asked why I used the phone without permission.
Ellen asked why I had used the phone without permission.