Well, Apple succeeded because they had fabulous marketing (in its own way) mixed with products that at least have something going for them, like hardware design and functionality aimed at the popular crowd. Microsoft have a problem here, because they don't stand out with anything. They could take advantage of their business services (which is where they make vast majority of their profits) but instead they are trying to steal Android's and iOS' users, and they simply aren't as good as either of those. They don't even have any unique selling points with WP so it's really hard to pick a group of people that WP would appeal to over Android or iOS.
WP is like the worst of both words - you have an extremely closed platform that prevents you from doing stuff more than Apple does - you can't even transfer files or use file browser and you can't even 'jailbreak' it to make it more functional. Of course you can't customize anything or play with the device running it because there's nothing there other than the apps.
On another hand the "closed" ecosystem is really poor, with little amount of apps or even alternative, low quality clients for popular services. The UI is basically 1 screen with tiles *and that's all there is. *So I don't believe it's better than its market share shows. It's funny because for example Samsung has their own little closed OS - Bada, that sells about the same despite lack of marketing. It's just.. better, lol.
I think Microsoft is failing because they don't have a reasonable vision for something that people would like. Instead, they want to force their weird products on people and frankly, their ideas are really bad lately.
First Windows 8 - if only they enabled a *choice *between the metro interface and desktop interface their sales would probably be much higher. Instead it's the worst selling Windows OS to date amongst business users, which is where Microsoft gets most of their money from. Windows phone was also killed from the start by weird limitations and by bringing nothing new to the table, which isn't quite what people would expect from a new player trying to gain a piece of a market dominated by really innovative products. If the next Xbox will have some weird shit going on Microsoft might sink in its own shit and their business partners might not be enough to keep it going.