If you don't have any case or backcover that can obstruct (interfere with) the normal physical activity of your ringer/mute switch, since your iphone is brand new, I woud have it checked at your most convenient Apple Store or AASP: Apple - Find Locations - Location Selector
Regards
Giulio