What is potential energy of an electric dipole without any external field?
If its 0 then why? Wouldn't the charges get attracted thus do work so they must have some potential energy.
If the dipole is formed from two point charges $q$ and $-q$ a distance $d$ apart it has dipole moment $p=qd$. The potential energy of this system of charges is $$ U=-\frac{q^2}{4\pi\epsilon_0 d} $$ Unfortunately this potential $U$ cannot be written in terms of $p$ only. I can try to elimiate $q$, giving $$ U=-\frac{p^2}{4\pi\epsilon_0 d^3} $$ But I can't eliminate $d$ from this equation. Therefore, the electrostatic potential energy of a dipole is not uniquely determined by the dipole moment $p$. The smaller the dipole physically is, the more negative potential it has.
A similar problem occurs when we try to ask what the potential energy of a point charge in free space is. We can consider the point charge to be a sphere of charge of radius $R$, then its potential energy is
$$
\frac{3q^2}{20\pi\epsilon_0 R}
$$
Just like with the dipole, the point charge's potential energy is not uniquely determined by its charge $q$. If you ask me "how much energy did it take to assemble this very small sphere of charge $q$, I will say "I don't know unless you tell me how big it is." Same answer goes for a dipole.