When I connect Nokia only headset to Mobile it's not connected properly?

After connecting headset I heard music for some time after that automatically sound coming from mobile