If you use the past simple when the past perfect is called for, or vice-versa, it's an error.
It's not possible here to explain to you in full the uses of the perfect "tenses", there are many sites on the internet where you can study them. If, after doing some research, you need help with specific questions, you are welcome to post them here.





