➨Do the gods help us if we pray to them according to Buddhism?
Sure, if one honores and respects them, one can espect rewards. Like if one interacts with other beings, here being with guṇā, having performed and developed goid qualities.
Like with other beings the help is of course limited to merely "outwardly". But they are also used to lift ones mind and come to skilful concentration.
The Buddha praised and encouraged to sacrifies and respect in regard of the Devas and Gods and told that a person doing so where ever he goes, will always gain the respect of the Devas and be best possible protected. (Maybe my person can add a key sutta here, which came to mind)
It's usuall to give wishes like "may the Devas protect you".
The Buddha was always good protected and supported by the Devas and enjoyed their help and company even in his quest.
Not believing in "spontaneously born beings", Deva, Gods and rejecting their existence is a factor of wrong view and one not respecting the goodness and merits of Devas and in many cases their inferior might also still have problems not knowing what is higher and foremost, which is also an indicator of the first path factor missing, yet it is even a wordily matter of right estimate.
Of course Devas, aside of maybe teach or tell one Dhamma, can not help one in the task to master the path for liberation from suffering, like nobody can: Something one needs to do by oneself, and of course Devas can also not chance effects caused by ones iwn deeds and erease them to arise. But all that ciunts for other people, even the Lord Buddha likewise.
It is maybe good to remark that Devas do not like the company of humans that much because of their virtue, so to enjoy best help and have Devas arround, one needs to have virtue and attributes similar to them.
So torward all here coming accross:
May the devas protect you.
Through the power of all the Buddhas/Dhamma/Sangha,
Sotthī hontu nirantaraṃ
May you forever be well.
Hotu sabbaṃ sumaṅgalaṃ
May there be every good blessing.
*(Note: This is a gift of Dhamma, came into being by goodness received and gratitude and so given by goodness and gratitude, and not meant for commercial purpose and trade in the world, or any wordily gain.)