Make sure that Pokerstars is set to save your hand history.
(Options > Instant Hand History Options)
Check that HM2 is set to import hands from the correct location.
(Hand Importing > Auto Import Options)
Hopefully this gets it working for you, if not try the HM2 support forums.
http://forums.holdemmanager.com/general-support/