Hello vonda97,
It sounds as though content in the Music app is automatically playing when connecting earphones to your device, or answering a phone call. If you haven't already please restart the iPhone using the steps in the following article.
Restart your iPhone
If you've already restarted, and the issue persists please sure that iOS is updated to the latest version as outlined in the following article.
Update your iPhone, iPad, or iPod touch
If you continue to have issues please provide more details about the issue you're facing, and if this has been a constant issue, or if it started after updating iOS.
Have a great day.