Bee Hives

I recently saw an article asking people to put hives in their gardens to encourage the bees. However, I have had a go at this before and was rather badly stung but  I would like to help the bees. Can anyone tell me....could I put a hive in the garden but leave it completely alone?  Would this help and would they be happy bees. I am not interested in harvesting the honey or anything, just providing them with a home and helping to protect them. Also, apart from planting to encourage bees, how can I help bumble bees? Do they need hives too!!!

Thank you Jenny