Hi @melaf,
The camera takes light. Therefore, it will not focus without enough exposure. You have to get the exposure correct.
There is a technique to taking photos like these and getting them right. If you wish to venture into these kinds of photography then it would worth the while learning it. There are introduction to two courses by Ben Long at this link. You can benefit from the courses he does on exposure.