Can’t tell much by the images unfortunately. Alignment is important with latches. Collisions put things out of alignment. You may have to start by putting things back in place as much as you can. If there is an electrical issue, you may have to replace the broken components. To help you find those components you might find this info helpful: http://www.ericthecarguy.com/faq/solving-automotive-electrical-problems
Good hunting. Please keep us updated on your progress.