it sounds like a faulty headphone jack to me, especially since you get both channels if you pull the plug out slightly - I've seen this exact symptom on various old audio gear before if one of the contacts in the jack doesn't make a solid connection with the plug.
do confirm your earphones are good on another known good audio source, but if they are your headphone jack is the problem.