Great question — answering as the UphillTech team:
The pawls in your freehub are most likely getting stuck, causing them not to lock and transfer the force from the cassette to the wheel. In your case as the bike is new it is probably due to it being assembled with grease rather than a lighter oil, but the problem can also come with ageing. You will need to rebuild the freehub. This is not the easiest procedure and requires some specific tools (chain whip and freehub nut at least) so probably get your bike shop to do it. The unusable gears on the back could be a number of things, rear derailleur limit screws, lack of cable tension, bent hanger/derailleur... If you are already taking it to a bike shop just ask them to fix it. EDIT: Based on...
Full answer by Toby: https://bicycles.stackexchange.com/a/44229 (CC BY-SA 3.0).
Need it done for your business? UphillTech.