In M or A mode, your exposure settings are likely too dark. Set a lower f-number (like f/3.5), increase ISO (try 800 or 1600), and in M mode, use a slower shutter speed (like 1/60s). Make sure you're shooting in good light and check the exposure meter in the viewfinder to balance the settings.