2001 Ford Explorer tailgate and computer won't work

computer (cabin) stopped working (no power).

Tailgate wont work(unlock) unless engine is running.

Can you explain that in much more detail? Exactly what are you calling the cabin computer? How do you know it has no power? Why do you think that is connected to your tailgate not unlocking?