I upgraded the Ram to mine and have the same problem. I asked my friend to hold the top part of the computer while the wires were still connected and what clearly upset me was she dropped it with zero care to answer her phone.
It wouldn’t make sense undergoing a costly repair if this is an older computer unit like my unsupported mac mini. I’d only seriously use professional help if this is one of the newest up to date models.
My recommended resolution is to just buy a USB wifi adapter for less than $20.
OR if your wifi router is close enough - use the ethernet port to connect internet directly.