I can't connect to wifi

The output of cat /etc/modprobe.d/linux515-broadcom-wl.conf is

blacklist b43
blacklist b43legacy
blacklist ssb
blacklist bcm43xx
blacklist brcm80211
blacklist brcmfmac
blacklist brcmsmac
blacklist bcma

its the same, so you can remove it:
sudo rm /etc/modprobe.d/blacklist.conf
also uninstall everything:

sudo pacman -R linux515-broadcom-wl linux54-broadcom-wl linux515-headers linux54-headers

reboot
and post output from:
inxi -xN
ls /etc/modprobe.d

When I try to uninstall using the command you gave this comes

checking dependencies...
error: failed to prepare transaction (could not satisfy dependencies)
:: removing linux515-headers breaks dependency 'linux-headers' required by rtl8821ce-dkms-git

why do you have it installed? its for rtl8821ce card, which you dont have…
post output from:
pacman -Qs dkms

The output of pacman -Qs dkms is

local/dkms 3.0.6-1
    Dynamic Kernel Modules System
local/rtl8821ce-dkms-git 1.0.5.r140.gbe733dc-1
    rtl8821CE driver with firmware
local/rtw89-dkms-git 1:r178.f3ea327-1
    Driver for Realtek 8852AE, an 802.11ax device

so why do you have it installed? you dont have this card

I don’t know maybe i installed when I was trying the methods of other forms

you have also installed rtw89-dkms-git, which you also dont have…
remove it all:
pamac remove rtl8821ce-dkms-git rtw89-dkms-git
then:

sudo pacman -R linux515-broadcom-wl linux54-broadcom-wl linux515-headers linux54-headers

reboot
and post output from:
inxi -xN
ls /etc/modprobe.d

The output of inxi -xN is

Network:
  Device-1: Broadcom BCM43142 802.11b/g/n vendor: Dell Wireless 1704 802.11n
    + BT 4.0 driver: bcma-pci-bridge v: N/A bus-ID: 07:00.0
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Dell driver: r8168 v: 8.050.03-NAPI port: e000 bus-ID: 09:00.0

The output of ls /etc/modprobe.d is

hp.conf  r8169_blacklist.conf

just to be sure, post output from:
pamac list -qm

The output of pamac list -qm is

easywifi-git

remove it too, you dont have a working wifi anyway:
pamac remove easywifi-git
then reboot
and try installing again the drivers:
sudo mhwd -i pci network-broadcom-wl
if you dont get the same error, reboot

Still got the same error

I just noticed that before in the network section I had a wifi and airplane mode options but now it is not there

i dont know whats heppening here… are you dualbooting with windows?
post output from:
find /lib/modules/ -name "wl"
sudo dmesg | grep wl
pacman -Qs manjaro-firmware

No I am not dual booting, I deleted windows and installed Manjaro
There is no output for find /lib/modules/ -name "wl" and sudo dmesg | grep wl
The output for pacman -Qs manjaro-firmware is

local/manjaro-firmware 20160419-1
    Extra firmwares for Manjaro Linux

what is the output from this:
sudo mhwd -r pci network-broadcom-wl

The output for sudo mhwd -r pci network-broadcom-wl is

> Removing network-broadcom-wl...
Sourcing /etc/mhwd-x86_64.conf
Has lib32 support: true
Sourcing /var/lib/mhwd/local/pci/network-broadcom-wl/MHWDCONFIG
Processing classid: 0200
Processing classid: 0280
Processing classid: 0282
> Successfully removed network-broadcom-wl

now were going somewhere…
so reboot and post output again from:
inxi -xN

The output for inxi -xN

Network:
  Device-1: Broadcom BCM43142 802.11b/g/n vendor: Dell Wireless 1704 802.11n
    + BT 4.0 driver: bcma-pci-bridge v: N/A bus-ID: 07:00.0
  Device-2: Realtek RTL8111/8168/8411 PCI Express Gigabit Ethernet
    vendor: Dell driver: r8168 v: 8.050.03-NAPI port: e000 bus-ID: 09:00.0