Hheadlights do not work and truck has no pick up when I press on the accellarator. on 1996 Ford F-150

What is the problem and how do I fix?

Asked by for the 1996 Ford F-150
Need more info. Did the headlight problem and driving issue happen together? Do you have a check engine light? If you do is it flashing?