Not sure what actual TV you have. Phillips doesn't narrow it down to any specific model number, and you better believe that the model number matters because some TVs have features that others do not.
If your TV only has 3 HDMI inputs, then you obviously can't connect your Sky Box, XBox, Nintendo, AND a speaker bar to them. That's four devices.
You could connect your Nintendo to the speaker bar, and then connect the speaker bar to the HDMI/ARC connection on the TV, and then your other two sources to the other HDMI inputs on the TV and be done with it. That could very well work. Maybe.
I say maybe, because I have no idea if your TV has a HDMI/ARC connection on it. Your Sony speaker bar DOES have a HDMI input on it, so you can connect a single source to that connection point. But, if your TV does NOT have a HDMI/ARC connection on it, then you will need to use the optical out of the TV... assuming your TV has an optical audio out. But, if your TV has an HDMI/ARC connection, then that's what should be used.