I think Chinese Pod made a good video on this a while back. https://www.youtube.com/watch?v=BKRpTh7M2QM
But if you want my answer, 生活 is like "one's daily life", and "what one does on a daily basis", it can also mean "to live".
我很不喜歡在北京的生活 I don't like life in Beijing
能過著理想的生活是再幸福的事情不過了 Being able to live an ideal life is the happiest thing there is
我在英國生活 I live in the UK
生命 is life "to have life". So the reason you 生活 is because you have 生命
科學家想要知道在外太空是否有別的生命存在 Scientists want to know whether there are other lifeforms in space
To ask what the difference between something is, you say
A和B有甚麽區別?