First, you need to check what caused the flat tire. Whether it’s a malfunction in the valve or a rip in the tire you need to fix it first before inflating.
Once you find the problem, mend it and then pump your tire back up. If it still doesn’t inflate then there may be other tears in the tire that need patching.